Page 1 of 1
Object projection3D to 2D
Posted: Thu Feb 19, 2026 7:04 am
by Mike_007
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
Re: Object projection3D to 2D
Posted: Tue Feb 24, 2026 12:00 am
by Nick
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