324 lines
6.8 KiB
JSON
324 lines
6.8 KiB
JSON
{
|
|
"id": "cadrille-text-workflow",
|
|
"revision": 0,
|
|
"last_node_id": 7,
|
|
"last_link_id": 7,
|
|
"nodes": [
|
|
{
|
|
"id": 5,
|
|
"type": "CADFaceAnalysis",
|
|
"pos": [
|
|
1200,
|
|
-35
|
|
],
|
|
"size": [
|
|
282,
|
|
384
|
|
],
|
|
"flags": {},
|
|
"order": 3,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "cad_model",
|
|
"type": "CAD_MODEL",
|
|
"link": 4
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "cad_model",
|
|
"shape": 6,
|
|
"type": "CAD_MODEL",
|
|
"links": null
|
|
},
|
|
{
|
|
"name": "vtp_filepath",
|
|
"shape": 6,
|
|
"type": "STRING",
|
|
"links": [
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"name": "json_filepath",
|
|
"shape": 6,
|
|
"type": "STRING",
|
|
"links": [
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"name": "report",
|
|
"type": "STRING",
|
|
"links": null
|
|
},
|
|
{
|
|
"name": "top_30_by_edges",
|
|
"shape": 6,
|
|
"type": "STRING",
|
|
"links": null
|
|
},
|
|
{
|
|
"name": "top_30_smallest_area",
|
|
"shape": 6,
|
|
"type": "STRING",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"cnr_id": "comfyui-cadabra",
|
|
"ver": "ce834c69225192e26bb33f7aeee5f487b39b65c2",
|
|
"Node name for S&R": "CADFaceAnalysis"
|
|
},
|
|
"widgets_values": [
|
|
0.1,
|
|
0.5,
|
|
1,
|
|
true,
|
|
""
|
|
]
|
|
},
|
|
{
|
|
"id": 7,
|
|
"type": "CADAnalysisViewer",
|
|
"pos": [
|
|
1580.5252878289473,
|
|
-69.29954769736844
|
|
],
|
|
"size": [
|
|
531.0819284539475,
|
|
784
|
|
],
|
|
"flags": {},
|
|
"order": 4,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "vtp_filepath",
|
|
"type": "STRING",
|
|
"widget": {
|
|
"name": "vtp_filepath"
|
|
},
|
|
"link": 6
|
|
},
|
|
{
|
|
"name": "json_filepath",
|
|
"type": "STRING",
|
|
"widget": {
|
|
"name": "json_filepath"
|
|
},
|
|
"link": 7
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"properties": {
|
|
"cnr_id": "comfyui-cadabra",
|
|
"ver": "ce834c69225192e26bb33f7aeee5f487b39b65c2",
|
|
"Node name for S&R": "CADAnalysisViewer"
|
|
},
|
|
"widgets_values": [
|
|
0,
|
|
"",
|
|
"",
|
|
"normal",
|
|
""
|
|
]
|
|
},
|
|
{
|
|
"id": 1,
|
|
"type": "LoadCadrilleModel",
|
|
"pos": [
|
|
100,
|
|
0
|
|
],
|
|
"size": [
|
|
270,
|
|
126
|
|
],
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "model",
|
|
"type": "CADRILLE_MODEL",
|
|
"links": [
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"name": "model_info",
|
|
"type": "STRING",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"cnr_id": "comfyui-cadabra",
|
|
"ver": "ce834c69225192e26bb33f7aeee5f487b39b65c2",
|
|
"Node name for S&R": "LoadCadrilleModel"
|
|
},
|
|
"widgets_values": [
|
|
"SFT (recommended)",
|
|
"cuda",
|
|
"float32"
|
|
]
|
|
},
|
|
{
|
|
"id": 2,
|
|
"type": "CadrilleTextInference",
|
|
"pos": [
|
|
414.821560488031,
|
|
7.442375233213143
|
|
],
|
|
"size": [
|
|
270,
|
|
150
|
|
],
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "model",
|
|
"type": "CADRILLE_MODEL",
|
|
"link": 1
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "cadquery_code",
|
|
"type": "STRING",
|
|
"links": [
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"name": "code_preview",
|
|
"type": "STRING",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"cnr_id": "comfyui-cadabra",
|
|
"ver": "ce834c69225192e26bb33f7aeee5f487b39b65c2",
|
|
"Node name for S&R": "CadrilleTextInference"
|
|
},
|
|
"widgets_values": [
|
|
"Create a new coordinate system with Euler angles set to 0 degrees for the first 2 angles and -90 degrees\nfor the third angle. Set the translation vector to 0.2766, 0.1476, and 0.2766. On the first face, draw a\n2-dimensional sketch consisting of 2 loops. For the first loop, draw a circle with its center at 0.0984, 0.0984,\nand a radius of 0.0984. For the second loop, draw another circle with the same center but a smaller radius\nof 0.048. Scale the entire 2-dimensional sketch by a factor of 0.1969. Rotate and translate the scaled\n2-dimensional sketch using the previously defined coordinate system settings. Extrude the outer loop (the\nlarger circle) by 0.1476 units in the direction opposite to the normal. Similarly, extrude the inner loop (the\nsmaller circle) by the same distance in the same direction. Ensure that the extrusion results in a new solid\nbody. The final dimensions of the cylindrical object with a hole should be a length of 0.1969 units, a width of\n0.1969 units, and a height of 0.1476 units. The object resembles a doughnut shape, with a smooth surface\nand a uniform diameter.",
|
|
768
|
|
]
|
|
},
|
|
{
|
|
"id": 4,
|
|
"type": "CadQueryExecute",
|
|
"pos": [
|
|
712.3697862792968,
|
|
1.249975501644732
|
|
],
|
|
"size": [
|
|
400,
|
|
200
|
|
],
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "cadquery_code",
|
|
"type": "STRING",
|
|
"widget": {
|
|
"name": "cadquery_code"
|
|
},
|
|
"link": 5
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "cad_model",
|
|
"type": "CAD_MODEL",
|
|
"links": [
|
|
4
|
|
]
|
|
},
|
|
{
|
|
"name": "step_file",
|
|
"type": "STRING",
|
|
"links": null
|
|
},
|
|
{
|
|
"name": "status",
|
|
"type": "STRING",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"cnr_id": "comfyui-cadabra",
|
|
"ver": "ce834c69225192e26bb33f7aeee5f487b39b65c2",
|
|
"Node name for S&R": "CadQueryExecute"
|
|
},
|
|
"widgets_values": [
|
|
"",
|
|
10,
|
|
true
|
|
]
|
|
}
|
|
],
|
|
"links": [
|
|
[
|
|
1,
|
|
1,
|
|
0,
|
|
2,
|
|
0,
|
|
"CADRILLE_MODEL"
|
|
],
|
|
[
|
|
4,
|
|
4,
|
|
0,
|
|
5,
|
|
0,
|
|
"CAD_MODEL"
|
|
],
|
|
[
|
|
5,
|
|
2,
|
|
0,
|
|
4,
|
|
0,
|
|
"STRING"
|
|
],
|
|
[
|
|
6,
|
|
5,
|
|
1,
|
|
7,
|
|
0,
|
|
"STRING"
|
|
],
|
|
[
|
|
7,
|
|
5,
|
|
2,
|
|
7,
|
|
1,
|
|
"STRING"
|
|
]
|
|
],
|
|
"groups": [],
|
|
"config": {},
|
|
"extra": {
|
|
"ds": {
|
|
"scale": 0.8360000000000005,
|
|
"offset": [
|
|
188.03927069802427,
|
|
412.3390297989838
|
|
]
|
|
},
|
|
"frontendVersion": "1.34.9",
|
|
"workflowRendererVersion": "LG"
|
|
},
|
|
"version": 0.4
|
|
} |