There is a BoundingBox mystery when making a subtraction on a 3dsolid from another.
Open Z_test.dwg file and run this code:
(defun show_bound_points
(/ e_list obj mi_pnt ma_pnt minExt maxExt b_points
) e_list
(entsel "Select entity") )
mi_pnt
(vlax
-safearray
->list minExt
) ma_pnt
(vlax
-safearray
->list maxExt
) b_points
(list mi_pnt ma_pnt
) )
)
At the prompt select the rectangular extrusion object.
The result is: ((28.952 11.0577 0.0) (35.8243 14.4762 0.846105))
Now, do a
SUBTRACTION of the circular threaded object from the rectangular one.
Run the code again and select the rectangular object again.
Then the result is:
((28.952 11.0577 -1.11022e-16) (35.8243 14.4762 0.870144))
Nothing should have changed but the Z values for the second point on the bounding box are different, 0.846105 and 0.870144.
Is there an explanation for that?
Comments will be highly appreciated.