Page 1 of 1

Shape to shape distance

Posted: Thu Mar 17, 2022 5:35 am
by Adam D
Hi
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

Re: Shape to shape distance

Posted: Fri Mar 18, 2022 12:05 am
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