Hello, everyone: I'm getting back to using pyOCC after a while. I am hoping someone can point me the right direction. After reading documentation and samples for a few hours, I'm still not sure where to start.
Previously, I have written a slicing application ( samples--> slicer ), and I would like to continue that work. The next step is to create toolpaths that fill in the faces created from the slicing operation. There are a number of general approaches that could be used: One is to use BRepOffset to offset the wires inwards. However, the approach I would rather take is to use a 'grid' approach, in which I first compute a grid of points on the face, and the fill them all in afterwards. I feel like this approach will be more tolerant to degenerate geometry. So, to my question: I think looking at the SMESH sample, I could use smesh to generate a set of points on my surface that are spaced evenly. Looking at the sample I can see how to create the mesh, but I cannot see how to extract the points from the mesh. I am also unsure how to instruct the mesher to generate a grid that has a fixed space between the points in a particular plane. In my case the face will always be a planar face in the x-y plane: what I want is an array of points at a fixed spacing that cover the surface. After retrieving that array of points, i'll then use a filling algorithm to cover each point in the grid. Can someone point me in the right direction? Thanks!
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users