Skip to content

Refactor existing code to prepare for fast-csg#3960

Closed
ochafik wants to merge 11 commits intoopenscad:masterfrom
ochafik:fast_csg_prerequisite1
Closed

Refactor existing code to prepare for fast-csg#3960
ochafik wants to merge 11 commits intoopenscad:masterfrom
ochafik:fast_csg_prerequisite1

Conversation

@ochafik
Copy link
Contributor

@ochafik ochafik commented Oct 28, 2021

These changes prepare the ground for #3641 and mostly don't add new helpers that are specific to fast-csg (except for the invert_orientation and use_grid params in createPolyhedronFromPolySet - although the latter already existed in code deactivated by an #if 1).

Olivier Chafik added 11 commits October 28, 2021 04:01
…LUtils::createPolyhedronFromPolySet (and CGAL_Build_PolySet)
…(Copy_polyhedron_to uses a new CGALUtils::getConverter helper)

missed PolySet::reserve
…pplyMinkowski, applyOperator3D, applyUnion3D}

Added CGALUtils::{getGeometryAsPolySet, convertNefToPolyhedron, getGeometryAsNefPolyhedron} helpers in the process, which simplifies code in GeometryEvaluator.
Adding Geometry::{transform, resize} (already part of PolySet & CGAL_Nef_polyhedron) and ResultObject::asMutableGeometry helps simplify GeometryEvaluator.
@ochafik ochafik closed this Oct 28, 2021
@ochafik ochafik deleted the fast_csg_prerequisite1 branch October 28, 2021 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant