-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Hi,
I could create a VTK (or STL) based on extracting bezier.tri as connectivity to a set of vertices as follows:
bezier = domain.sample('bezier', 10)
points = bezier.eval(geom)
export.vtk(vtkpath, bezier.tri, points)
However, after exporting the generated geometry to a tool and observing the normal direction in each element, it shows that every alternative element has a inverted element orientation (see image below). I think this is not intentional and it would be better to rotate the orientation all to a direction.
For now, a simple fix is done using the following lines:
# Change element orientation
tri = bezier.tri.copy()
tri[1::2, 1] = bezier.tri[1::2, 2]
tri[1::2, 2] = bezier.tri[1::2, 1]
Metadata
Metadata
Assignees
Labels
No labels