MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / opposite

Method opposite

splashsurf_lib/src/halfedge_mesh.rs:193–195  ·  view source on GitHub ↗

Returns the opposite half-edge of the given half-edge

(&self, half_edge: HalfEdge)

Source from the content-addressed store, hash-verified

191
192 /// Returns the opposite half-edge of the given half-edge
193 pub fn opposite(&self, half_edge: HalfEdge) -> HalfEdge {
194 self.half_edges[half_edge.opposite]
195 }
196
197 /// Returns a mutable reference to the opposite half-edge of the given half-edge
198 pub fn opposite_mut(&mut self, half_edge: usize) -> &mut HalfEdge {

Calls

no outgoing calls

Tested by

no test coverage detected