export_block_mesh
Mesh an implicit or mesh block non-invasively and export it to STL, 3MF, or OBJ, then automatically analyze volume, surface area, bounding box, and watertightness for simulation workflows.
Instructions
Non-invasively mesh an implicit/mesh block and export to .stl, .3mf, or .obj via ntopcl.
Never modifies your .ntop file. Automatically runs analyze_mesh on the exported mesh
so you immediately get volume, surface area, bounding box, and watertightness — ready for COMSOL/Abaqus.
Args:
notebook_path: Path to the source .ntop file.
target: Block ID or unique name (e.g. "Final Flanges and Pipes").
export_path: Destination mesh path (.stl, .3mf, .obj, .ply).
tolerance: Meshing tolerance (supports "1mm", "0.5mm", or SI float meters).
unit: Export length unit ("mm", "cm", "m", "in").
sharpen: Enable sharp-edge preservation in Mesh from Implicit Body.
simplify: Enable mesh simplification.
inputs: Optional nTop Automate inputs dict/list.
analyze: If True (default), analyze exported mesh geometry & watertightness.
timeout_seconds: Optional timeout override in seconds.
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": {
"notebook_path": "<notebook_path>",
"target": "<target>",
"export_path": "<export_path>"
},
"name": "export_block_mesh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | mm | |
| inputs | No | ||
| target | Yes | ||
| analyze | No | ||
| sharpen | No | ||
| simplify | No | ||
| tolerance | No | 1mm | |
| export_path | Yes | ||
| notebook_path | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |