pageok
Contact: matt.parker.creates@gmail.com

 

The ObjFile class allows you to create Lumarca visuals with Wavefront .obj files. a standard 3D model file format. There are several options for creating, moving, rotating, resizing, displaying wireframes, and rendering these objects.


LumarcaLibrary class

Constructor
LumarcaLibrary(PApplet pApplet, String fileName)
LumarcaLibrary(PApplet pApplet, int numLines, boolean newMap)

Positions
getLines()
getMaxX()
getMaxY()
getMaxZ()
getMidX()
getMidY()
getMidZ()
getMinX()
getMinY()
getMinZ()
getCenterPosition(PVector p)
getMinPosition(PVector p)
getMaxPosition(PVector p)

Draw
drawLine(PVector color, PVector top, PVector bottom)
drawLineNoDots(PVector color, PVector top, PVector bottom)
drawShape(PVector color, Shape shape)
drawShapeNotDots(PVector color, Shape shape)

Simulate
drawWireframe(Shape shape)
moveCamera(float rot)

pageok