Function truck_rendimpl::modeling::builder::homotopy [−][src]
pub fn homotopy(
edge0: &Edge<Point3<f64>, NURBSCurve<Vector4<f64>>>,
edge1: &Edge<Point3<f64>, NURBSCurve<Vector4<f64>>>
) -> Face<Point3<f64>, NURBSCurve<Vector4<f64>>, NURBSSurface<Vector4<f64>>>
Returns a homotopic face from edge0
to edge1
.
Examples
use truck_modeling::*; // homotopy between skew lines let v0 = builder::vertex(Point3::new(0.0, 0.0, 0.0)); let v1 = builder::vertex(Point3::new(1.0, 0.0, 0.0)); let v2 = builder::vertex(Point3::new(0.0, 1.0, 0.0)); let v3 = builder::vertex(Point3::new(0.0, 1.0, 1.0)); let line0 = builder::line(&v0, &v1); let line1 = builder::line(&v2, &v3); let homotopy = builder::homotopy(&line0, &line1);