Open RyanABahr opened 2 years ago
Doing that many voxels will probably always be slow with CadQuery, but there may be ways to improve the performance. Here is a similar discussion that might provide some ideas. Specific comments that might help are this one and this one. There is also another similar issue referenced.
One option (discussed in the linked issue) might be to draw the voxels as 2D rects and then extrude them at the end. In that scenario you would not use an assembly, but you can still export solids to STEP.
Not a use case of CQ. You could try using combine=False
in the box call.
I'm trying to convert bitmaps (arrays of 0,1 denoting presence of 35um x 35um x 20um voxel) into 3D step file to have a representation of what a model looks like after slicing. Is there are recommended method for improving the speed? This can take an hour by the time it gets to the second layer on an 800x800 landscape that has 100 cylinders of 6 pixel radius. I believe if I use a separate algorithm to convert the boundaries of pixel bodies into a polyline, it may speed things up rather than pixel by pixel, but I fear this may not solve the problem. I believe I am doing something inherently wrong with cadquery.