SplitIntoSimplices - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


PolyhedralSets

  

SplitIntoSimplices

  

split a polyhedral set into simplices

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

SplitIntoSimplices(polyset)

SplitIntoSimplices(polyset, point)

Parameters

polyset

-

polyhedral set

point

-

polyhedral set representing a vertex, list of rationals, Vector or list/set of equations of the form coordinate = value; point where polyset will be split

Description

• 

This command splits the polyhedral set polyset into simplices, returning a list of polyhedral sets whose union is polyset. Only bounded polyhedral sets, that is to say polytopes, can be divided into simplices.

• 

If point is provided, it will be a vertex of all the simplices when polyset is split. If point is omitted, an arbitrary vertex of polyset is chosen for the splitting point.

Examples

> 

with⁡PolyhedralSets:

Splitting the cube into simplices gives a list of tetrahedrons.

> 

c≔ExampleSets:-Cube⁡:

> 

c_pieces≔SplitIntoSimplices⁡c

c_pieces≔{Coordinates:x1,x2,x3Relations:−x3≤1,−x2+x3≤0,−x1+x2≤0,x1≤1,{Coordinates:x1,x2,x3Relations:−x2≤1,x2−x3≤0,−x1+x3≤0,x1≤1,{Coordinates:x1,x2,x3Relations:−x3≤1,x2≤1,−x1+x3≤0,x1−x2≤0,{Coordinates:x1,x2,x3Relations:−x2+x3≤0,x2≤1,−x1≤1,x1−x3≤0,{Coordinates:x1,x2,x3Relations:x3≤1,−x2≤1,−x1+x2≤0,x1−x3≤0,{Coordinates:x1,x2,x3Relations:x3≤1,x2−x3≤0,−x1≤1,x1−x2≤0

(1)

The volume of the cube is equal to the sum of the volume of the simplices.

> 

Volume⁡c

8

(2)
> 

volumes≔map⁡Volume,c_pieces

volumes≔43,43,43,43,43,43

(3)
> 

`+`⁡volumes

8

(4)

Plot the simplices with transparency to see the internal structure of the sets.

> 

Plot⁡c_pieces,transparency=0.5,orientation=23,62,0

Compatibility

• 

The PolyhedralSets[SplitIntoSimplices] command was introduced in Maple 2015.

• 

For more information on Maple 2015 changes, see Updates in Maple 2015.

See Also

PolyhedralSets

PolyhedralSets[PolyhedralSet]