Closed kmarchais closed 6 months ago
Some attempt to try to debug this:
buildSolids
method from phase.py
for x ...
, all the parts are here (screenshot on the right side)# To run in jupyterlab in a jupyter notebook to be able to quickly visualize the geometry
from microgen import *
from jupyter_cadquery import show, set_defaults, open_viewer
cv = open_viewer("Box", cad_width=640, height=480)
set_defaults(reset_camera=True, show_parent=False, axes=True, axes0=True)
ellipsoid = Ellipsoid(a_x=0.3, a_y=0.3, a_z=0.4)
shape = ellipsoid.generate()
wk_plane = cq.Workplane().add(shape)
grid = [5, 4, 4]
for x in np.linspace(-0.5, 0.5, num=grid[0]):
plane = cq.Face.makePlane(basePnt=(x, 0, 0), dir=(1, 0, 0))
wk_plane = wk_plane.split(plane)
for y in np.linspace(-0.5, 0.5, num=grid[1]):
plane = cq.Face.makePlane(basePnt=(0, y, 0), dir=(0, 1, 0))
wk_plane = wk_plane.split(plane)
for z in np.linspace(-0.5, 0.5, num=grid[2]):
plane = cq.Face.makePlane(basePnt=(0, 0, z), dir=(0, 0, 1))
wk_plane = wk_plane.split(plane)
show(wk_plane)
# show(cq.Compound.makeCompound(wk_plane.val().Solids()))
Describe the bug, what's wrong, and what you expected.
The example
examples/3Doperations/rasterEllipsoid
doesn't have the same behaviour as it used to be. It appears that some parts are missing as shown on the screenshot. The bug also appears in the equivalent example ofexamples/jupyter_notebooks
Steps to reproduce the bug.
System Information
Screenshots