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
Search found 4 matches
- Fri Mar 18, 2022 12:05 am
- Forum: General Issues
- Topic: Shape to shape distance
- Replies: 1
- Views: 4300
- Mon Nov 16, 2020 3:30 am
- Forum: General Issues
- Topic: How to obtain parameter of point on curve
- Replies: 1
- Views: 3788
Re: How to obtain parameter of point on curve
Hi Naci ICurve_DG.GetNearestPoint() gives point to curve projection. It returns the parameter on the curve. In your case the projected point will coincide with the input so the return will be the parameter along the curve: double u = iCurve_DG.GetNearestPoint(point, null); To be extra sure you can g...
- Thu Oct 22, 2020 3:44 am
- Forum: General Issues
- Topic: Bspline curves intersection
- Replies: 1
- Views: 3568
Re: Bspline curves intersection
Hi Najib You need to cast IBSplineCurve_DG to ICurve_DG for both and use ICurve_DG.GetIntersection(). If they do not intersect the return will be zero. If they do, the haveTangentialIntersection flag will tell you about tangential intersection. ICurve_DG.GetIntersection1() gives more information abo...
- Thu Jul 10, 2014 12:08 am
- Forum: Bug Reports
- Topic: An issue with IView2.Reset()
- Replies: 1
- Views: 7800
An issue with IView2.Reset()
Hello I am using update 4.3.3845 in C# VIsual Studio 2008. I have a ResetView() method which does only IView2.Reset() and updates the window The issue I am having is that if I rotate the model and click twice a Home button, where ResetView() is the handler, I get a jerk on the second click. Third cl...