Shape to shape distance

Technical discussions
Post Reply
Adam D
Posts: 1
Joined: Thu Mar 17, 2022 5:31 am

Shape to shape distance

Post by Adam D »

I need functionality for distances between brep shapes. It seems that dg kernel is Opencascade-based. Is there an analogue of the OCCT BRepExtrema_DistShapeShape class?
Thanks in advance

Eric Holt
Posts: 3
Joined: Wed Jul 09, 2014 11:56 pm

Re: Shape to shape distance

Post by Eric Holt »

I think IMetrics_DG queried from the entity is supposed to do that.

If you, say, need distance between sub-shapes, like wire and face you could create new dummy entities of "BRep" type and use it's IBRepGeometry_DG.Shape property to assign the sub-shapes to it.

I hope this helps

Post Reply