Class ObjModel
java.lang.Object
eu.svjatoslav.aukio.e3d.renderer.raster.shapes.AbstractShape
eu.svjatoslav.aukio.e3d.renderer.raster.shapes.composite.base.AbstractCompositeShape
eu.svjatoslav.aukio.e3d.renderer.raster.shapes.composite.LightmappedCompositeShape
eu.svjatoslav.aukio.e3d.renderer.raster.shapes.composite.obj.ObjModel
A 3D model loaded from a Wavefront OBJ file, as a composite of
solid polygons (one
SolidPolygon per OBJ face, colored by the
face's usemtl material).
Instances are built by ObjLoader; treat the model as an
ordinary composite: position it with AbstractCompositeShape.setTransform(Transform), toggle
AbstractCompositeShape.setShadingEnabled(boolean) / AbstractCompositeShape.setBackfaceCulling(boolean), and add it to
the scene graph.
- See Also:
-
Field Summary
Fields inherited from class AbstractShape
cachedBoundingBox, mouseInteractionController -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintNumber of faces (= child polygons) in the model.intNumber of vertices declared in the OBJ source.intNumber of distinct materials referenced by the model's faces.Methods inherited from class LightmappedCompositeShape
isLightmappingEnabled, postprocessRenderList, setLightmappingEnabled, setLightmapUnitsPerTexelMethods inherited from class AbstractCompositeShape
addShape, addShape, beforeTransformHook, collectMeshBlocks, collectRenderTriangles, extractSolidPolygons, getBoundingBox, getGlobalRenderListVersion, getGroup, getLocation, getSubShapesRegistry, getTransform, getTransformWeight, getViewSpaceTracker, hideGroup, intersect, removeGroup, setBackfaceCulling, setCacheNeedsRebuild, setColor, setGroupForUngrouped, setMouseInteractionController, setRootComposite, setShadingEnabled, setTransform, showGroup, subtract, transform, unionMethods inherited from class AbstractShape
invalidateBounds
-
Constructor Details
-
ObjModel
public ObjModel(int sourceVertexCount, int faceCount, int usedMaterialCount)
-
-
Method Details
-
getSourceVertexCount
public int getSourceVertexCount()Number of vertices declared in the OBJ source. -
getFaceCount
public int getFaceCount()Number of faces (= child polygons) in the model. -
getUsedMaterialCount
public int getUsedMaterialCount()Number of distinct materials referenced by the model's faces.
-