Page 1 of 1
Lines and curves (Restored thread)
Posted: Thu Jun 20, 2024 10:36 am
by Guoliang
Hello
I need to add some straight lines and curves around an object. What is the right way? I am just learning.
Thank you
Re: Lines and curves (Restored thread)
Posted: Thu Jun 20, 2024 10:41 am
by Prashant Kande
Hi
There are number of ways
1) You can call IStdShape_DG.Line()
2) Using IObjectGenerator_DG.Create((int)EObjectType.eObjTypeLineStrip) call
3) By importing a VRML file with "IndexedLineSet" node.
...
With the first method you get a straight line. You can modify it to make curve by adding internal points.
See the code in Init() method of the Lines example.
The Intersection of Lines and Curves in DG Kernel.
Posted: Fri Jun 21, 2024 12:03 pm
by Jesseseemn
How does DG Kernel handle the intersection of lines and curves in a complex geometric model? Are there any specific algorithms or methodologies that are employed to ensure accuracy and efficiency in these calculations?
Re: Lines and curves (Restored thread)
Posted: Sat Jun 22, 2024 7:14 pm
by Prashant Kande
Hello
The algorithm depends on the geometry type. Intersections of parametric (BRep) curves is handled by the Open Cascade engine. These are very robust WRT accuracy and performance and have been extensively used and tested.
See also:
ICurve_DG.GetIntersection*()
Regards