mirror of
https://github.com/gumyr/build123d.git
synced 2026-03-13 02:03:05 -07:00
geometry.py -> only triangulate if optimal=False and oriented=True
should improve performance of optimal=False, oriented=False
This commit is contained in:
parent
8e798f2b57
commit
bb810ea665
1 changed files with 2 additions and 2 deletions
|
|
@ -995,10 +995,10 @@ class BoundBox:
|
|||
else:
|
||||
BRepBndLib.AddOptimal_s(shape, bbox)
|
||||
else:
|
||||
mesh = BRepMesh_IncrementalMesh(shape, tolerance, True)
|
||||
mesh.Perform()
|
||||
# this is adds +margin but is faster
|
||||
if oriented:
|
||||
mesh = BRepMesh_IncrementalMesh(shape, tolerance, True)
|
||||
mesh.Perform()
|
||||
BRepBndLib.AddOBB_s(shape, bbox_obb)
|
||||
else:
|
||||
BRepBndLib.Add_s(shape, bbox, True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue