class PF::Mesh

Defined in:

3d/mesh.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(tris : Array(PF::Tri)) #

[View source]

Class Method Detail

def self.load_obj(path, use_normals : Bool = false) #

Load an obj file


[View source]

Instance Method Detail

def origin : Vector3(Float64) #

[View source]
def origin=(origin : Vector3(Float64)) #

[View source]
def position : Vector3(Float64) #

[View source]
def position=(position : Vector3(Float64)) #

[View source]
def rotation : Vector3(Float64) #

[View source]
def rotation=(rotation : Vector3(Float64)) #

[View source]
def tris #

[View source]
def tris=(tris : Array(PF::Tri)) #

[View source]