-
-
Save rycwo/4868f4e13b7cea761ab7e46639a739e8 to your computer and use it in GitHub Desktop.
Example shape definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"operators": [ | |
{ | |
"type": "GenerateSamplePoints", | |
"parameters": { | |
"offset": [ | |
-100, | |
-100, | |
-100 | |
], | |
"size": [ | |
200, | |
200, | |
200 | |
], | |
"resolution": [ | |
512, | |
512, | |
512 | |
] | |
} | |
}, | |
{ | |
"type": "SampleSurfaceLattice", | |
"parameters": { | |
"lattice_type": "Gyroid", | |
"scale": [ | |
40, | |
40, | |
40 | |
], | |
"threshold": 0, | |
"xform": [ | |
1, | |
0, | |
0, | |
0, | |
0, | |
1, | |
0, | |
0, | |
0, | |
0, | |
1, | |
0, | |
0, | |
0, | |
0, | |
1 | |
] | |
} | |
}, | |
{ | |
"type": "Shell", | |
"parameters": { | |
"offset": 0, | |
"thickness": 1 | |
} | |
}, | |
{ | |
"type": "Redistance", | |
"parameters": { | |
"post_offset": 0, | |
"pre_offset": 0, | |
"size": [ | |
200, | |
200, | |
200 | |
] | |
} | |
}, | |
{ | |
"type": "SampleBox", | |
"parameters": { | |
"shape_type": "Ellipsoid", | |
"size": [ | |
200, | |
200, | |
200 | |
], | |
"xform": [ | |
1, | |
0, | |
0, | |
0, | |
0, | |
1, | |
0, | |
0, | |
0, | |
0, | |
1, | |
0, | |
0, | |
0, | |
0, | |
1 | |
] | |
} | |
}, | |
{ | |
"type": "CSG", | |
"parameters": { | |
"operation": "Intersect", | |
"smoothing": 0 | |
} | |
}, | |
{ | |
"type": "Threshold", | |
"parameters": { | |
"width": 3.4641016151377544 | |
} | |
} | |
], | |
"edges": [ | |
{ | |
"source": 0, | |
"target": [ | |
1, | |
"Points" | |
] | |
}, | |
{ | |
"source": 1, | |
"target": [ | |
2, | |
"Samples" | |
] | |
}, | |
{ | |
"source": 2, | |
"target": [ | |
3, | |
"Samples" | |
] | |
}, | |
{ | |
"source": 0, | |
"target": [ | |
4, | |
"Points" | |
] | |
}, | |
{ | |
"source": 3, | |
"target": [ | |
5, | |
"A" | |
] | |
}, | |
{ | |
"source": 4, | |
"target": [ | |
5, | |
"B" | |
] | |
}, | |
{ | |
"source": 5, | |
"target": [ | |
6, | |
"Samples" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment