C# 클래스 QuantumConcepts.Formats.StereoLithography.Normal

A simple XYZ representation of a normal (Vertex).
상속: Vertex
파일 보기 프로젝트 열기: QuantumConcepts/STLdotNET 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

FromVertex() 공개 정적인 메소드

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 .
리턴 Normal

Invert() 공개 메소드

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

Normal() 공개 메소드

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

Normal() 공개 메소드

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

Read() 공개 정적인 메소드

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
리턴 Normal

Read() 공개 정적인 메소드

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
리턴 Normal

ToString() 공개 메소드

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