Closed KBGrammer closed 3 weeks ago
This bug has been resolved.
The parameter passed down to get_box should be "self.options" because it is treated as options in get_box. Additionally, there's a call to get_box that was also missing the required second parameter in conversion/cell_definition.py
def get_box(comp, options):
bb = FreeCAD.BoundBox(comp.BoundBox)
bb.enlarge(options.enlargeBox)
Describe the bug
Simplification fails when using the option "full" with the error below. It appers to be a missing second option for calls to get_box() and build_c_table_from_solids().
To Reproduce
Expected behavior
Should process the simplification of the geometry, but it crashes with a number of errors.
Error message
This is the error for get_box:
This is the error for build_c_table_from_solids:
This is the error from the point_inside function:
Please complete the following information):
Additional context
If I had only posted the first error, I wouldn't have found the second. I'm working through these and resolving them as I go.
Errors 1 and 2 seem to be resolved by changing the following lines in core.py:
to this:
Error 3 is because an integer "cut_box" is defined in the function point_inside() as well as being defined as a callable function. Changing the integer to something else resolves it. Affects two lines in utils/boolean_solids.py, with cut_box replaced as "cbox".