I have to producde 2D images in memory of a 3D component in my model, without altering the moidel. Preferably i create an array of lines or points that connect to make the 2D shape i need.
I have to produce a 2D image from each side of a components bounding box (Front, back, left, right, top, bottom and vertical center cut)
I have 2 solutions :
- Produce a plane on the cut to make the view. Project all points to the plane, do some sorting and organizing and produce a bunch of lines from the resulting points
- Make a face in the position and direction i need, intersect the face with the component, take all edges in the new group and produce an image.
I got both solutions working, but both have their downsides.
Is there a good way to do something like this in memory, without altering the model?