> I'm getting back to using pyOCC after a while. Welcome back Dave, we've missed you!
> 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. Wow, so a g-code export? Have you seen pycam? > 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. Yes, dekskproto of delft spline systems has that algorithm for instance. > 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. Or just loop through the U,V domain of a face? And than offset via the normal of the face? > Looking at the sample I can see how to create the mesh, but I cannot see how > to extract the points from the mesh. You could do something similar ( if you decide polysoup is the way to go ) to just look up the triangles that represent a surface ( we always look at triangles in OpenGL, you don't get to see the actual nurbs but just an approximation ) > 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. No way a mesher will generate equidistant points uh uh... > 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. Right, abscissa points… So, what about dividing up the contours of your slicer by n-points or a distance? For what machine are you writing the slicer exactly? Do you need an offset ( like we need when milling ) to the surface? Happy to see you back on this list ;') -jelle _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users