I'm looking for a Geom_Curve that would be good for storing a list of points and representing a list of straight lines. I was hoping to find a Geom_Polyline but had no luck.
TopoDS_Wire contains a set of TopoDS_Edges. TopoDS_Edges are topological entites, that can be created from Geom_Curves by for example calling BRepBuilderAPI_MakeEdge.
To create a wire from a set of TopoDS_Edges, you can use BrepBuilderAPI_MakeWire.
To explore a TopoDS_Wire, use BrepTools_WireExplorer. This tool lets you access the edges of the wire in the order of connection. If the order of connection is irrelevant, you can also use TopExp_Explorer.
Mon, 01/27/2014 - 21:44
Am I supposed to just use TopoDS_Wire?
Mon, 01/27/2014 - 22:02
Hello Ian,
TopoDS_Wire contains a set of TopoDS_Edges. TopoDS_Edges are topological entites, that can be created from Geom_Curves by for example calling BRepBuilderAPI_MakeEdge.
To create a wire from a set of TopoDS_Edges, you can use BrepBuilderAPI_MakeWire.
To explore a TopoDS_Wire, use BrepTools_WireExplorer. This tool lets you access the edges of the wire in the order of connection. If the order of connection is irrelevant, you can also use TopExp_Explorer.
Mon, 01/27/2014 - 22:04
Thanks :)