VolumeMesher

(Source code, svg)

../../_images/VolumeMesher.svg
class otmeshing.VolumeMesher(*args)

Build a volume mesh from a surface mesh associated to a convex volume.

Tetrahedralizes a closed triangular surface mesh by creating a fan of tetrahedra from an apex vertex to each boundary triangle.

Methods

build(surface)

Build a volume mesh from a surface mesh.

getApexStrategy()

Apex strategy accessor.

getClassName()

Accessor to the object's name.

getName()

Accessor to the object's name.

hasName()

Test if the object is named.

setApexStrategy(strategy)

Apex strategy accessor.

setName(name)

Accessor to the object's name.

__init__(*args)
build(surface)

Build a volume mesh from a surface mesh.

Parameters:
surfaceMesh

A surface mesh (triangles in dimension 3) associated to a convex volume.

Returns:
volumeMesh

A volume mesh (tetrahedra in dimension 3).

getApexStrategy()

Apex strategy accessor.

Returns:
strategyint

VolumeMesher.CENTROID or VolumeMesher.FIRSTVERTEX.

getClassName()

Accessor to the object’s name.

Returns:
class_namestr

The object class name (object.__class__.__name__).

getName()

Accessor to the object’s name.

Returns:
namestr

The name of the object.

hasName()

Test if the object is named.

Returns:
hasNamebool

True if the name is not empty.

setApexStrategy(strategy)

Apex strategy accessor.

Parameters:
strategyint

VolumeMesher.CENTROID or VolumeMesher.FIRSTVERTEX.

setName(name)

Accessor to the object’s name.

Parameters:
namestr

The name of the object.

Examples using the class

Volume meshing

Volume meshing