Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
As defined in the question. I am looking to discriminate straight edge (can be selected) to curved one.
Solved! Go to Solution.
As defined in the question. I am looking to discriminate straight edge (can be selected) to curved one.
Solved! Go to Solution.
The BRepEdge object supports the geometry property. This will return different types of objects depending on the shape of the edge. You'll want to check if you get back a Line3D object.
if edge.geometry.objectType == adsk.core.Line3D.classType():
app.log('Edge is linear')
else:
app.log('Edge is NOT linear')
Many Thanks !