I am scripting in Python to create surface patches using the Brep API. Basically my call pattern is:
brep = rg.Brep.CreateEdgeSurface([crv1, crv2, crv3, crv4])
Do something with the brep.
However I discovered that the resulting surface is unpredictable in terms of some details.
- The indexes of the edges seem to be in random order. Ideally crv1 will be edge 0, crv2 be edge 1, etc. But this is not the case and the resulting order of indexes seem to be unpredictable.
- Whether the surface is facing outside or inside is unpredictable.
- Whether the U direction go horizontally or vertically is unpredictable.
I don’t mind ordering the input curves in a certain way, as long as there is predictability. Any thoughts?
3 posts - 2 participants