I am working with RepRap, an open source, rapid prototyping project.
For this project, we need to "slice" a solid ( typically imported via STEP or STL ), into layers and create toolpaths that will fill each layer.
I've been working on using OCC to perform the slicing operation, and I could use some assistance.
So far, I have successfully imported the geometry into a shape, and then created a cutting plane to make a section. It will be no problem to iterate through the layers and create the sections.
I have read through these forums, and I've found quite a few different approaches that are possible. I could use some advice on which would work best.
(1) use BRepAlgoAPI_Section or BRepAlgo_Section. It seems many say that BRepAlgoAPI_Section is buggy. I was successful using this approach, but it had the problem that the resulting compound and its associated edges are not represented as a wire, so I have "lost" the information about how to traverse the edges in loops. I am not sure if BRrep_MakeWire will construct the edges in the right sense to represent inner and outer loops
(2) BRepTool_Cut has been mentioned by some-- it would create a single shap if I cut with a halfspace, or two shapes(?) if I cut with a shape made from a plane. It would be more expensive, i suppose, but would retain the cut surface as a face that would have wires already constructed
Does anyone have some advice on which approach I should take?
Your suggestions are much appreciated!