Open mdastous-bentley opened 1 year ago
The GraphicBuilder enhancement cannot be completed until faceting of parity regions is supported by @itwin/core-geometry.
PolyfaceBuilder.addGeometryQuery invokes GeometryQuery.dispatchToGeometryHandler(this). ParityRegion.dispatchToGeometryHandler invokes handler.handleParityRegion. PolyfaceBuilder extends NullGeometryHandler which implements handleParityRegion as a no-op. So we currently cannot obtain facets from a parity region.
@dassaf4 suggests the approach used for faceting loops could be extended to support parity regions as well.
Their should be a way to add a polygon with holes using GraphicBuilder (i.e. by defining a ParityRegion). Ideally that should also be compatible with the existing addPrimitive method.