Trait fj_core::operations::sweep::SweepHalfEdge
source · pub trait SweepHalfEdge {
// Required method
fn sweep_half_edge(
&self,
end_vertex: Handle<Vertex>,
surface: &SurfaceGeometry,
color: Option<Color>,
path: impl Into<Vector<3>>,
cache: &mut SweepCache,
core: &mut Core
) -> (Face, Handle<HalfEdge>);
}
Expand description
§Sweep a HalfEdge
See module documentation for more information.
Required Methods§
sourcefn sweep_half_edge(
&self,
end_vertex: Handle<Vertex>,
surface: &SurfaceGeometry,
color: Option<Color>,
path: impl Into<Vector<3>>,
cache: &mut SweepCache,
core: &mut Core
) -> (Face, Handle<HalfEdge>)
fn sweep_half_edge( &self, end_vertex: Handle<Vertex>, surface: &SurfaceGeometry, color: Option<Color>, path: impl Into<Vector<3>>, cache: &mut SweepCache, core: &mut Core ) -> (Face, Handle<HalfEdge>)
§Sweep the HalfEdge
Returns a face, the result of sweeping the edge, as well as the top edge of that face, i.e. the edge that is the version of the original edge that was translated along the sweep path.
In addition to the usual arguments that many sweep operations require, some other ones are needed:
end_vertex
, the vertex where the half-edge ends. This is the start vertex of the next half-edge in the cycle.- The
surface
that the half-edge is defined on. - The
color
of the resulting face, if applicable
Object Safety§
This trait is not object safe.