class

PF3d::Mesh

Inherits Reference < Object

Mesh represents a collection of points and triangles TODO: Keep points in a collection, removing duplicates, and keep triangle vertices pointing to the points in that collection

Constructors

new(tris : Array(PF3d::Tri))
Source

Class methods

load_obj(path, use_normals : Bool = false)

Load an obj file TODO: Load meshes specified by the obj file

Source

Instance methods

origin
Source
origin=(origin : PF2d::Vec3(Float64))
Source
position
Source
position=(position : PF2d::Vec3(Float64))
Source
rotation
Source
rotation=(rotation : PF2d::Vec3(Float64))
Source
scale
Source
scale=(scale : PF2d::Vec3(Float64))
Source
tris
Source
tris=(tris : Array(PF3d::Tri))
Source

Nested types