e3d_project_primitive_csg_drawing
Project a supported primitive with negative CSG cutters into FRONT/TOP/SIDE linework, returning a PNG preview and optional SVG/DXF for review.
Instructions
Read a supported positive primitive with 1 to 32 flat negative children and project its manifold3d Mesh64 owner-member parameter difference in WORLD millimetres into FRONT/TOP/SIDE linework. Supports BOX/CYLI/CONE parents, with NCYL/NBOX/NCON cutters, bounded hidden-line removal and optional hidden edges. The current native bridge rejects DISH with child members. Returns a PNG preview plus optional SVG/DXF carrying PARAMETER CSG - NATIVE CUT SCOPE UNVERIFIED. Fully removed material succeeds with empty views and no image. Requires optional geometry dependencies, two matching native parameter reads and matching session/project/MDB boundaries; these separate observations are not atomic. Native tessellation and negative-application scope remain unverified. Optional native volume comparison reports differences without establishing shape equivalence. No model, current element, Drawlist, camera or view changes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"refno": "<refno>"
},
"name": "e3d_project_primitive_csg_drawing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refno | Yes | Explicit positive primitive /NAME or =database/element reference with supported negative children. | |
| views | No | FRONT looks from +Y, TOP from +Z, SIDE from +X. | |
| include_dxf | No | Include ASCII DXF R2000 source, with layered millimetre linework and overall projected dimensions. Hidden edges use dashed per-view layers when show_hidden_lines=true. | |
| include_svg | No | Include SVG source in structured data; the PNG preview is always returned on success. | |
| preview_width | No | PNG width in pixels. Width × height is capped at 2,000,000 pixels. | |
| preview_height | No | PNG height in pixels. Width × height is capped at 2,000,000 pixels. | |
| radial_segments | No | Radial facet count for curved parent and cutter operands. | |
| show_hidden_lines | No | Include occluded edge portions as dashed lines in PNG/SVG and on separate hidden-line layers in optional DXF. Requires hidden_line_removal=true. | |
| chord_tolerance_mm | No | Optional maximum analytic operand surface deviation in model millimetres. Refines each curved parent and cutter separately, using radial_segments as a minimum. Impossible tolerance or geometry budget fails without partial geometry. Does not certify native tessellation or Boolean intersection accuracy. | |
| hidden_line_removal | No | Use bounded projected-depth occlusion analysis. Work-budget exhaustion returns no partial drawing. | |
| feature_angle_degrees | No | Minimum adjacent-face dihedral angle for feature edges; silhouettes are always retained. | |
| include_native_volume | No | Also read native GVOL/NVOL ONLY between parameter reads. Requested unavailable volume fails; discrepancies are retained without verifying native cut scope. |