PrintSimulationMesh customizable UpVector
It would be very helpful if the UpVector (or the direction defining the Y radius) could be specified per PrintSimulationMesh segment instead of being determined automatically. This would allow us to correctly display horizontal segments, where our Printer Head is not aligned with the World Z-Axis but printing from an angle.
We are using PrintSimulationMesh to visualize extrusion paths in a 3D printing software.
For each segment, I can specify an X and Y radius. For horizontal segments (all points have the same Z value), the Y radius is aligned with the global Z axis.
For sloped segments, for example from (0, 0, 0) to (5, 0, 5), the Y radius is instead oriented perpendicular to the segment. In this example it points along approximately (-1, 0, 1). From this behavior, I assume that the Y radius is currently defined using the segment's perpendicular vector that is closest to the global Z axis.
This becomes a problem when a sloped path is connected to a horizontal segment. Since the horizontal segment always uses the global Z axis as its Y direction, the orientation changes abruptly between the two segments. As a result, the horizontal meshes do not align properly and small gaps appear between them (see attached image). From a top view, the horizontal segments meshes overlap.
In the example below, the sloped segment has an angle of 22.5°. If the horizontal segment's cross-section were also rotated by 22.5°, the horizontal mesh sections would meet cleanly without gaps.

Comments
Please sign in to leave a comment.