class PF3d::Mesh

Overview

Mesh represents a collection of points and triangles

TODO Keep points in a collection, removing duplicates, and keep triangle verticies pointing to the points in that collection

Defined in:

pf3d/mesh.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

[View source]

Class Method Detail

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

Load an obj file

TODO Load meshes specified by the obj file


[View source]

Instance Method Detail

def origin : PF2d::Vec3(Float64) #

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

[View source]
def position : PF2d::Vec3(Float64) #

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

[View source]
def rotation : PF2d::Vec3(Float64) #

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

[View source]
def scale : PF2d::Vec3(Float64) #

[View source]
def scale=(scale : PF2d::Vec3(Float64)) #

[View source]
def tris #

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

[View source]