Polyhedron container class, which is accessible by the final users upon call

Public fields

file.id

Polyhedron file.id

state

Polyhedron state

Methods

Public methods


Method new()

Create a polyhedronState object

Usage

Polyhedron.class$new(file.id, state = NULL)

Arguments

file.id

the file id

state

polyhedron state object

Returns

A new Polyhedron object.


Method scrapeNetlib()

scrape Netlib polyhedron definition

Usage

Polyhedron.class$scrapeNetlib(netlib.p3.lines)

Arguments

netlib.p3.lines

vector with netlib definition lines

Returns

A new PolyhedronStateDefined object.


Method scrapeDmccooey()

scrape Dmccooey polyhedron definition

Usage

Polyhedron.class$scrapeDmccooey(polyhedra.dmccooey.lines)

Arguments

polyhedra.dmccooey.lines

vector with Dmccooey definition lines

Returns

A new PolyhedronStateDefined object.


Method deserialize()

deserialize a polyhedron state definition

Usage

Polyhedron.class$deserialize(serialized.polyhedron)

Arguments

serialized.polyhedron

a serialized version of a polyhedron state

Returns

A new PolyhedronStateDefined object.


Method getName()

get Polyhedron name

Usage

Polyhedron.class$getName()

Returns

string with polyhedron name


Method getState()

Gets polyhedron state

Usage

Polyhedron.class$getState()

Returns

A new PolyhedronState object.


Method getSolid()

Gets a solid definition

Usage

Polyhedron.class$getSolid()

Returns

A list of vertex vectors composing polyhedron faces.


Method isChecked()

checks Edges consistency

Usage

Polyhedron.class$isChecked()

Returns

A boolean value


Method getRGLModel()

Return an 'rgl' model with an optional transformation described by transformation.matrix parameter

Usage

Polyhedron.class$getRGLModel(transformation.matrix = NULL)

Arguments

transformation.matrix

transformation matrix parameter

Returns

An tmesh3d object


Method exportToXML()

exports an XML definition of current polyhedron

Usage

Polyhedron.class$exportToXML()

Returns

A character object with the XML definition


Method getErrors()

returns the errors found when processing current polyhedron

Usage

Polyhedron.class$getErrors()

Returns

a data.frame with polyhedron errors


Method checkProperties()

check properties of current polyhedron

Usage

Polyhedron.class$checkProperties(expected.vertices, expected.faces)

Arguments

expected.vertices

expected vertices number

expected.faces

expected faces number

Returns

Unmodified polyhedron object


Method clone()

The objects of this class are cloneable with this method.

Usage

Polyhedron.class$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.