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