forked from 1b-agent/opencadstudio-upstream
fix(render): draw spatial curves and widths
This commit is contained in:
1 parent
ac8183ec91
commit
c943dfe391
2 files changed
+2
-2
No files matched your search
@@ -116,7 +116,7 @@ fn to_render(spl: &Spline) -> RenderEntity {
|
||||
let is_closed = spl.flags.closed || spl.flags.periodic;
|
||||
let mut points = crate::entities::curve::spline_curve(spl)
|
||||
.map(|planar| crate::entities::curve::curve_points(&planar))
|
||||
.unwrap_or_default();
|
||||
.unwrap_or_else(|| measurement_polyline(spl));
|
||||
if is_closed {
|
||||
if let (Some(first), Some(last)) = (points.first().copied(), points.last().copied()) {
|
||||
let gap = ((last[0] - first[0]).powi(2)
|
||||
|
||||
@@ -1134,7 +1134,7 @@ pub fn tessellate(
|
||||
};
|
||||
out.push(WireModel {
|
||||
taper_widths: Vec::new(),
|
||||
world_width: 0.0,
|
||||
world_width: polyline_band_width(entity),
|
||||
depth_override: None,
|
||||
fill_is_3d: false,
|
||||
fill_is_2d_solid: false,
|
||||
|
||||
Reference in new issue
Block a user