Individual skill
evo-3d-scan-calc
Complete pipeline for binary STL parsing, connected component extraction, volume computation, material density lookup, and mass calculation with JSON output.
tasks-evolved/3d-scan-calc/environment/skills/evo-3d-scan-calc/SKILL.md
Source commit 84ca182da055fafb6453dcec4a6defdbbfd987c1
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 97
- Repository last updated
- Sep 10, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- ai-agents Repository topic
- llm-agents Repository topic
- open-world Repository topic
- self-evolving-agents Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 2,899 bytesSKILL.mdcore · 2,899 bytesSKILL.mdcore · 2,899 bytesscripts/utils.pyruns · 9,493 bytes
Read excerpt
# evo-3d-scan-calc
End-to-end skill for computing the mass of a 3D printed part from a binary STL scan file.
## Pipeline Overview
1. **Parse binary STL** — Decode 80-byte header, 4-byte triangle count, and 50-byte facet records. Extract vertices and Material ID (uint16 attribute field) per triangle.
2. **Find connected components** — Build vertex-based adjacency (triangles sharing any vertex are connected) using vertices quantized to **4 decimal places**. BFS to find all components.
3. **Select main part** — Compute volume for each component. The **largest by volume** is the main part.
4. **Extract Material ID** — Use the attribute from the **first triangle** of the largest component.
5. **Lookup density** — Reference the material density table: `{1: 0.10, 10: 7.85, 25: 2.70, 42: 5.55, 99: 11.34}`.
6. **Calculate mass** — `mass = volume * density`. **No unit conversion needed** (density table matches mesh coordinate units).
7. **Write report** — Save JSON with `main_part_mass` and `material_id`.