Struct stl_parser::Triangle
[−]
[src]
pub struct Triangle { pub vertices: [Vertex; 3], pub lines: [Line; 3], }
Triangle class. Mesh is list of these.
Fields
vertices: [Vertex; 3]
lines: [Line; 3]
Methods
impl Triangle
[src]
fn new(vertices: [Vertex; 3]) -> Triangle
Proper and easy way to make triangle.
fn intersects_x(&self, x: f32) -> Vec<Vertex>
Gives points in triangles lines when x is known
fn intersects_y(&self, y: f32) -> Vec<Vertex>
Gives points in triangles lines when y is known
fn intersects_z(&self, z: f32) -> Vec<Vertex>
Gives points in triangles lines when z is known
Trait Implementations
impl Debug for Triangle
[src]
impl Clone for Triangle
[src]
fn clone(&self) -> Triangle
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more