
Tue, 10/25/2005 - 10:19
Forums:
Hi there!
When exploring the edges of a TopoDS_Shape (e.g. loaded from an IGES file), I convert the edges to handles to Geom_Curve.
Since I have no knowledge about the structure of the loaded IGES-files, I cannot make any assumptions on the true type of geometry making up different edges, and therefore cannot safely cast the Geom_Curve-handle to something more specific.
Any ideas on how to find out, if my Geom_Curve-handle points to a line, arc, BSpline, bezier or whatever?
Thanks in advance for any help!
Tue, 10/25/2005 - 10:58
Hello,
look in the documentation for "IsKind" or "DynamicType"
Gerhard
Tue, 10/25/2005 - 11:59
Thank you!
Using your tip I found, that if I want to find out, which kind of geometric type an edge has, IsKind() must be used with the STANDARD_TYPE()-macro.