Replace builder API with partial object API #1147
Labels
topic: core
Issues relating to core geometry, operations, algorithms
type: development
Work to ease development or maintenance, without direct effect on features or bugs
As part of my work on #1079, I've introduced a new [partial object API]. Please follow that link to learn more about it, there's quite a bit of documentation. This API grew out of the builder API and is designed to replace it. But so far, only some parts of the builder API have been converted into the partial object API. I expect that parts of the builder API will still exist when I finish #1079.
Eventually, all of the builder API should be migrated over. The following list reflects the current progress:
CurveBuilder
GlobalCurveBuilder
GlobalEdgeBuilder
GlobalVertexBuilder
HalfEdgeBuilder
SurfaceVertexBuilder
VertexBuilder
CycleBuilder
(ReplaceCycleBuilder
withPartialCycle
#1169)FaceBuilder
(IntegrateFace
into partial object API #1331)ShellBuilder
(Update old-style builder APIs #1452)SketchBuilder
(Update old-style builder APIs #1452)SolidBuilder
(Update old-style builder APIs #1452)If anyone is interested in taking a look, here's the process I've been using to migrate parts of the builder API:
builder
topartial::objects
.with_
methods for all of their fields.build_
methods withas_
andfrom_
methods.build
methods that is the only code that has access toStores
.Partial
,HasPartial
,MaybePartial
).If in doubt, use the existing partial object API as a template, and always feel free to ask questions here.
The text was updated successfully, but these errors were encountered: