3d scan calc

From XuShuwenn/RedAct · View interactive version

3d scan calc is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Analyze 3D mesh files to calculate geometric properties (volume, components) and extract attribute data from STL files.

How to use this skill

Skill file

3D Scan Calculation

When to Use

Basic Workflow

Default proven pattern for lookup-based mass tasks: confirm the mesh/input file and every required sidecar/reference file are present, inspect any provided helper and reference table early, extract only the decisive properties from the selected largest geometric component (typically volume + material ID), then perform exact lookup/arithmetic in one reproducible step and verify any written deliverable by reading it back.

  1. Inspect the workspace for provided helper scripts/tools that already parse the mesh or compute the requested geometry; prefer validated task-provided or existing mesh-analysis utilities over reimplementing STL parsing or connectivity analysis from scratch.
  1. Parse the STL file (binary format) only if needed
  1. Identify connected components
  1. Extract geometric properties (volume) and attributes
  1. Compute derived values (mass = volume × density)
  1. Before mass calculation, verify two prerequisites: (a) the exact material-ID-to-density row was explicitly retrieved, and (b) any unit conversion is supported by explicit evidence.
  1. If either prerequisite is missing, stop short of a definitive mass claim and state what remains unverified.
  1. Verify the full chain before final output: selected component -> material ID -> density lookup -> unit assumptions/conversion -> final arithmetic.
  1. If the task requires writing a result file or structured payload, validate the exact final artifact after writing: re-open/read it, confirm required fields and numeric values match your intended result, and fix any malformed serialization before finishing.
  1. If tooling or your own script produces multiple candidate results under different unit assumptions, do not pick one by convention; resolve the ambiguity from explicit evidence or report that no definitive physical quantity can be concluded.
  1. If a verification step for units, format, or lookup fails, switch to another evidence-based check using accessible files/tools before finalizing.
  2. DO NOT treat a failed verification command as evidence for any assumption. Wrong: unit-check command fails -> assume mm and convert anyway. Right: try another observable source of evidence, or keep mass/output marked unverified if the assumption remains unresolved.
  1. Follow any task-specific execution/output protocol literally. If the task or system message requires a specific tool-call format, schema, file path, or exact completion token, use that exact format and end exactly as required; do not substitute your usual tool syntax or a free-form closing message.
  1. Final-turn hard stop: immediately before responding, verify all three items together: (a) the final answer does not commit to any unresolved assumption branch, especially unit-dependent mass, (b) any late-rewritten script/file has been re-opened or its decisive diagnostics re-run, and (c) the final response is exactly the task-required completion token/format with no extra prose when required.

Important Notes

Verification Checklist

Verification Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.