Most visited

Recently visited

Geometry

public class Geometry
extends Object

java.lang.Object
   ↳ com.viro.core.Geometry
Known Direct Subclasses
Box Box is a simple shape representing a six-sided geometry, defined by width, height, and length. 
Polyline Polyline defines a multi-point line. 
Sphere Sphere defines a spherical shape, e.g. 
Surface Surface represents a one-sided plane defined by a width and height. 
Text Text is a Geometry that renders strings of text. 


Geometry is the top-level class for any displayable 3D model with Material objects that define its appearance. Geometry objects can be simple shapes (e.g. Box or Sphere), full 3D models (e.g. Object3D), or UI components (e.g. Text).

Summary

Public methods

List<Material> getMaterials()

Get the Material objects used by this Geometry.

void setMaterials(List<Material> materials)

Set the Material objects that define the Geometry's appearance.

Public methods

getMaterials

List<Material> getMaterials ()

Get the Material objects used by this Geometry.

Returns
List<Material> List containing each Material used by this Geometry.

setMaterials

void setMaterials (List<Material> materials)

Set the Material objects that define the Geometry's appearance.

Materials consist of a variety of visual properties, including colors and textures, that define how the Geometry interacts with the Lights in a Scene to render each pixel.

Geometries may contain multiple Materials; how those Materials map to the surfaces of a Geometry is determined by each individual Geometry.

Parameters
materials List: The list of Materials to use for this Geometry.

Hooray!