[−][src]Enum wavefront_rs::obj::entity::Entity
Contains all possible entities that can exist in an OBJ format.
Variants
Fields of Comment
content: String
Fields of Object
name: String
Fields of Group
name: String
Fields of SmoothingGroup
name: String
Fields of MergingGroup
name: String
Fields of Mtllib
name: String
Fields of Usemtl
name: String
Vertex consists of x
, y
, z
and w
whereas w
is optional.
Example xyzw: v 0.1 1.2 2.3 3.4
Example xyz: v 0.1 1.2 2.3
VertexNormal consists of x
, y
and z
. The normal will usually but is not required to be a unit vector.
Example: vn 0.1 1.2 2.3
VertexTexture consists of u
, v
and w
whereas u
and w
are optional.
Example uvw: vt 0.1 1.2 2.3
Example uv: vt 0.1 1.2
Example u: vt 0.1
VertexParameter consists of u
, v
and w
whereas v
and w
are optional.
u
is a 1D control point in the parameter space of a curve.
u + v
is a 2D control point in the parameter space of a surface.
Control poins for non rational trimming curves require u + v
.
Control points for rational trimming curves require u + v + w
.
w
defaults to 1.0 if not set.
Example uvw: vp 0.1 1.2 2.3
Example uv: vp 0.1 1.2
Example u: vp 0.1
The point entity contains a list of points in space.
Example (3 points): p 0 1 2
Example (1 point): p 0
Line consists of an arbitrary number (whereas n >= 2) of vertices that describe the path.
Face consists of an arbitrary number (whereas n >= 3) of complex vertices that describe the polygon.
Example (vertex): f 0 3 6
Example (vertex+normal+texture): f 0/1/2 3/4/5 6/7/8
Example (vertex+normal): f 0/1 3/4 6/7
Example (vertex+texture): f 0//2 3//5 6//8
Fields of Face
vertices: Vec<FaceVertex>
Implementations
impl Entity
[src]
Trait Implementations
impl Clone for Entity
[src]
impl Debug for Entity
[src]
impl From<String> for Entity
[src]
impl Into<String> for Entity
[src]
impl PartialEq<Entity> for Entity
[src]
impl StructuralPartialEq for Entity
[src]
impl ToString for Entity
[src]
Auto Trait Implementations
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,