forked from 1b-agent/opencadstudio-upstream
feat(tess): use angular sampling
Route curve, hatch, sweep, loft, surface, edge, and isoline tessellation through the shared kernel policy.
This commit is contained in:
1 parent
f607422c9d
commit
96be8214f9
21 files changed
+158
-767
No files matched your search
@@ -24,11 +24,7 @@ fn to_render(ell: &Ellipse) -> RenderEntity {
|
||||
.map(crate::entities::curve::snap_from)
|
||||
.unwrap_or_default();
|
||||
|
||||
// The points come from the entity's own curve, cut to the render pass's
|
||||
// chord tolerance. The two fixed counts this replaced — sixteen per half
|
||||
// for a full ellipse, thirty-two for an arc — faceted visibly on
|
||||
// anything large, and the local coordinates were built in `f32`, which
|
||||
// threw away precision the double-single vertex path exists to keep.
|
||||
// The points come from the entity's own kernel curve and angular policy.
|
||||
//
|
||||
// What does not change is the shape of the object. EXTRUDE, REVOLVE and
|
||||
// SWEEP read their profile out of `Contour` / `Curve` and have no arm for
|
||||
|
||||
Reference in new issue
Block a user