ConvexHullMesher

(Source code, svg)

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

Meshing of the convex hull of a set of points.

Yields a surface mesh of the convex hull (of intrinsic dimension d-1).

Methods

build(points)

Buld the convex hull 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

>>> import openturns as ot
>>> import otmeshing
>>> points = ot.Normal(2).getSample(100)
>>> mesher = otmeshing.ConvexHullMesher()
>>> hull = mesher.build(points)
__init__(*args)
build(points)

Buld the convex hull a set of points.

Parameters:
pointsSample

A set of points.

Returns:
meshMesh

The convex hull.

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.

Examples using the class

Convex hull meshing

Convex hull meshing