generalize component-finding code, and rewrite boundary representation to use find_components and find_faces

This commit is contained in:
jan 2018-03-10 23:54:19 -08:00
commit cc64f55c90

View file

@ -498,9 +498,9 @@ def test_poly_pyramid():
pyr3d.is_good(opoly)
stack_split(opoly)
brep = pyr3d.init_brep(opoly)
brep = pyr3d.into_boundary(opoly)
logger.debug(f'Round-trip converted pyramid: {brep}')
# plot_brep(brep)
#plot_brep(brep)
def plot_brep(brep):
@ -586,9 +586,9 @@ def test_torus_load_and_chop():
# pyr3d.is_good(opoly)
stack_split(opoly)
brep = pyr3d.init_brep(opoly)
brep = pyr3d.into_boundary(opoly)
logger.debug(f'Round-trip converted torus: {brep}')
# plot_brep(brep)
#plot_brep(brep)
choptions_3d = [thru_cent_3d, thru_face_3d,