CloudMesher

(Source code, svg)

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

Mesher from a set of points.

Methods

build(points)

Triangulate a set of points.

getClassName()

Accessor to the object's name.

getName()

Accessor to the object's name.

hasName()

Test if the object is named.

setName(name)

Accessor to the object's name.

Examples

Triangulate a set of points:

>>> import openturns as ot
>>> import otmeshing
>>> points = ot.JointDistribution([ot.Uniform()] * 2).getSample(15)
>>> mesher = otmeshing.CloudMesher()
>>> triangulation = mesher.build(points)
__init__(*args)
build(points)

Triangulate a set of points.

Parameters:
pointsSample

A set of points.

Returns:
meshMesh

The mesh built.

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.

setName(name)

Accessor to the object’s name.

Parameters:
namestr

The name of the object.