IntersectionMesher

(Source code, svg)

../../_images/IntersectionMesher.svg
class otmeshing.IntersectionMesher

Intersection meshing algorithm.

Methods

build(coll)

Generate the mesh of the intersection.

buildConvex(coll)

Generate the mesh of the intersection of convexes.

buildConvexSample(coll)

Generate the vertices of the intersection of convexes.

buildCylinder(coll)

Generate the mesh of the intersection of cylinders.

getClassName()

Accessor to the object's name.

getName()

Accessor to the object's name.

getRecompress()

Recompression flag accessor.

getUseSimplicesDecomposition()

Simplicial decomposition flag accessor.

hasName()

Test if the object is named.

setName(name)

Accessor to the object's name.

setRecompress(recompress)

Recompression flag accessor.

setUseSimplicesDecomposition(...)

Simplicial decomposition flag accessor.

Examples

Triangulate a parallelogram:

>>> import otmeshing
>>> import openturns as ot
>>> mesher = otmeshing.IntersectionMesher()
>>> dim = 2
>>> mesh1 = ot.IntervalMesher([1] * dim).build(ot.Interval([0.0] * dim, [3.0] * dim))
>>> mesh2 = ot.IntervalMesher([1] * dim).build(ot.Interval([1.0] * dim, [4.0] * dim))
>>> intersection = mesher.build([mesh1, mesh2])
__init__()
build(coll)

Generate the mesh of the intersection.

Parameters:
collsequence of openturns.Mesh

Input meshes.

Returns:
meshopenturns.Mesh

The mesh of the intersection.

buildConvex(coll)

Generate the mesh of the intersection of convexes.

Parameters:
collsequence of openturns.Mesh

Input convex meshes.

Returns:
meshopenturns.Mesh

The mesh of the intersection.

buildConvexSample(coll)

Generate the vertices of the intersection of convexes.

Parameters:
collsequence of openturns.Sample

Input convex vertices.

Returns:
verticesopenturns.Sample

The vertices of the intersection.

buildCylinder(coll)

Generate the mesh of the intersection of cylinders.

Parameters:
collsequence of Cylinder

Input cylinders.

Returns:
meshopenturns.Mesh

The mesh of the intersection.

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.

getRecompress()

Recompression flag accessor.

Returns:
recompressbool

Whether to eliminate duplicate vertices.

getUseSimplicesDecomposition()

Simplicial decomposition flag accessor.

Returns:
useSimplicesDecompositionbool

Whether to decompose the mesh by its simplices.

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.

setRecompress(recompress)

Recompression flag accessor.

Parameters:
recompressbool

Whether to eliminate duplicate vertices.

setUseSimplicesDecomposition(useSimplicesDecomposition)

Simplicial decomposition flag accessor.

Parameters:
useSimplicesDecompositionbool

Whether to decompose the mesh by its simplices.

Examples using the class

Cylinder meshing

Cylinder meshing

Application example

Application example

Intersection meshing

Intersection meshing