class OBJ::OBJParser

Defined in:

obj/parser.cr

Constructors

Instance Method Summary

Instance methods inherited from class OBJ::ParserBase

custom_file_opener : Proc(String, IO) | Nil custom_file_opener, custom_file_opener=(custom_file_opener : Proc(String, IO) | Nil) custom_file_opener=, on(tag : String | Symbol, &proc : String, String -> )
on(r : Regex, &proc : String, String -> )
on
, on_warning(&proc : String -> ) on_warning, open_file(file)
open_file(file, &block : IO -> )
open_file
, parse! parse!, warn(s) warn

Constructor Detail

def self.new(io : IO, filename : String, triangulate : Bool = false, load_materials : Bool = true) #

[View source]

Instance Method Detail

def current_mtl #

[View source]
def debug!(io : IO) #

[View source]
def faces : Array(Array(Models::Vertex)) #

[View source]
def faces=(faces : Array(Array(Models::Vertex))) #

[View source]
def groups : Array(Models::Shape) #

[View source]
def groups=(groups : Array(Models::Shape)) #

[View source]
def materials : Hash(String, Models::Material) #

[View source]
def materials=(materials : Hash(String, Models::Material)) #

[View source]
def mtllibs : Array(String) #

[View source]
def mtllibs=(mtllibs : Array(String)) #

[View source]
def objects : Hash(String, Models::Shape) #

[View source]
def objects=(objects : Hash(String, Models::Shape)) #

[View source]
def vertices : Array(CrystalEdge::Vector3) #

[View source]
def vertices=(v : Array(CrystalEdge::Vector3)) #

[View source]