Object projection3D to 2D

Everything DG Kernel: Technical discussions and issues
Post Reply
Mike_007
Posts: 1
Joined: Thu Feb 19, 2026 7:00 am

Object projection3D to 2D

Post 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
Nick
Site Admin
Posts: 35
Joined: Fri Jun 14, 2024 12:35 am

Re: Object projection3D to 2D

Post 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
Post Reply