blender-motion-state-inspection
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
Extract 2D geometry from an attached image and create a FreeCAD sketch from it.
Convert an image (drawing, sketch, reference photo, technical drawing) into a FreeCAD sketch by identifying its geometric shapes and creating a sketch with equivalent geometry.
XY if not specified. Accept XY, XZ, YZ.Do NOT guess the size. Without a real dimension, the sketch is useless for CAD.
Look at the attached image (or the textual description if no image is present) and identify the 2D shapes. For each shape, record:
rect, circle, polygon, or linescale = user_dimension_mm / measured_dimension_pixels.scale.{
"shapes": [
{"type": "rect", "x": 0, "y": 0, "width": 40, "height": 25},
{"type": "circle", "cx": 20, "cy": 12.5, "r": 3},
{"type": "polygon", "points": [[0,0], [10,0], [5,8]]},
{"type": "line", "x1": 0, "y1": 0, "x2": 10, "y2": 10}
],
"dimensions": [],
"notes": "brief description of what was recognized"
}
The dimensions array is reserved for future use (auto-constraint from
measured values in technical drawings). Leave it [] for now.
After deriving the JSON, call create_sketch with the shapes. Do NOT add
constraints — rectangles and circles are auto-constrained. Example:
create_sketch(
plane="XY",
geometries=[
{"type": "rectangle", "x": 0, "y": 0, "width": 40, "height": 25},
{"type": "circle", "cx": 20, "cy": 12.5, "radius": 3}
]
)
For line shapes, emit them as polygons with two points, since create_sketch
groups connected line segments into a polygon.
Briefly report:
Do NOT pad, pocket, or otherwise extrude the sketch unless the user explicitly asks — this skill only produces the 2D profile.
If the user wants to adjust the sketch after initial creation, use edit_sketch.
For resizing, moving, or replacing geometry (most common), use clear_all=true
and provide the complete updated geometry:
edit_sketch(sketch_name="MySketch", clear_all=true, add_geometries=[
{"type": "rectangle", "x": 0, "y": 0, "width": 50, "height": 30},
{"type": "circle", "cx": 6, "cy": 6, "radius": 3}
])
This clears all old geometry and constraints, then adds fresh geometry — no over-constraint issues. The sketch object, plane attachment, and body membership are preserved.
For adding new geometry to existing (e.g. "add a second hole"):
edit_sketch(sketch_name, add_geometries=[...])
For changing dimensions (e.g. "make it 50mm wide"): use clear_all=true with
updated geometry coordinates — dimensions are auto-constrained from the geometry.
Do NOT manually add DistanceX/DistanceY/Radius constraints.
dimensions array).AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
ANanthropics/skills203k近 7 天新增 3,265 个 star
HAharry0703/MoneyPrinterTurbo147k近 7 天新增 1,608 个 star
SHShubhamsaboo/awesome-llm-apps147k近 7 天新增 907 个 star
GAgarrytan/gstack143k近 7 天新增 598 个 star