C# Class QuantumConcepts.Formats.StereoLithography.Normal

A simple XYZ representation of a normal (Vertex).
Inheritance: Vertex
ファイルを表示 Open project: QuantumConcepts/STLdotNET Class Usage Examples

Public Methods

Method Description
FromVertex ( Vertex vertex ) : Normal

Converts the vertex to a normal.

This does nothing more than copy the X, Y and Z coordinates of the vertex into a new Normal instance.

Invert ( ) : void

Flips the normal so it faces the opposite direction.

Normal ( ) : System

Creates a new, empty Normal.

Normal ( float x, float y, float z ) : System

Creates a new Normal using the provided coordinates.

Read ( BinaryReader reader ) : Normal

Reads a single Normal from the reader.

Read ( StreamReader reader ) : Normal

Reads a single Normal from the reader.

ToString ( ) : string

Returns the string representation of this Normal.

Method Details

FromVertex() public static method

Converts the vertex to a normal.
This does nothing more than copy the X, Y and Z coordinates of the vertex into a new Normal instance.
public static FromVertex ( Vertex vertex ) : Normal
vertex Vertex The to be converted into a .
return Normal

Invert() public method

Flips the normal so it faces the opposite direction.
public Invert ( ) : void
return void

Normal() public method

Creates a new, empty Normal.
public Normal ( ) : System
return System

Normal() public method

Creates a new Normal using the provided coordinates.
public Normal ( float x, float y, float z ) : System
x float
y float
z float
return System

Read() public static method

Reads a single Normal from the reader.
public static Read ( BinaryReader reader ) : Normal
reader System.IO.BinaryReader The reader which contains a to be read at the current position
return Normal

Read() public static method

Reads a single Normal from the reader.
public static Read ( StreamReader reader ) : Normal
reader System.IO.StreamReader The reader which contains a to be read at the current position
return Normal

ToString() public method

Returns the string representation of this Normal.
public ToString ( ) : string
return string