I read a STEP file which has a 3D object. I need to transform the object into a specific 2D projection like front or top or right or left etc.
What is the best method to do it using dgk?
Regards
Object projection3D to 2D
Re: Object projection3D to 2D
We do not have a general algorithm for that, mostly because it is a not a well-defined problem. Something can be done, say for analyzing projections of a face. Notice that even for a single face a projection can have multiple self-intersections, projections of the flipped side, etc.
You could build a planar surface as a large face using IBRepFace_DG IBRepBuilder_DG.CreateFace1(IPlane_DG plane), obtain its surface and use
IUVSurface_DG.GetCurveProjection() or GetCurveUVProjection() to project curves of the face edges.
After that you would need to reconstruct the planar face from the set of the projected curves using intersections, etc.
Regards
You could build a planar surface as a large face using IBRepFace_DG IBRepBuilder_DG.CreateFace1(IPlane_DG plane), obtain its surface and use
IUVSurface_DG.GetCurveProjection() or GetCurveUVProjection() to project curves of the face edges.
After that you would need to reconstruct the planar face from the set of the projected curves using intersections, etc.
Regards