Function truck_modeling::builder::homotopy[][src]

pub fn homotopy(edge0: &Edge, edge1: &Edge) -> Face

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);