join

Purpose

Merges arrays of polyunions to one polyunion object.

Syntax

Un = U.join
Un = join(U)

Description

Merging of array of PolyUnion objecs in the same dimension to single PolyUnion object. If the union has Bounded and FullDim properties set as true, then all polyhedra must be bounded and full-dimensional.

Input Arguments

U

Array of PolyUnion objects in the same dimension.

Class: PolyUnion

Output Arguments

Un

Single PolyUnion object.

Class: PolyUnion

Example(s)

Example 1

Create a partition by triangulation of polyhedron ../../../../../../fig/mpt/modules/geometry/unions/@PolyUnion/join1.png.
P = 5*ExamplePoly.randVrep('d',3);
 Triangulate the polyhedron 
 T = P.triangulate; 
Create the array of unions of polyhedra and specifying some properties.
 U(1) = PolyUnion('Set',T(1:4),'fulldim',true,'bounded',true); 

 U(2) = PolyUnion('Set',T(5:6)); 

 U(3) = PolyUnion('Set',T(7:end),'bounded',true); 
 All unions are in the same dimension and all polyhedra are bounded and full-dimensional, therefore we can merge the unions.
 Un = U.join 
PolyUnion in the dimension 3 with 11 polyhedra.
Properties of the union: 
  Bounded: 1
  FullDim: 1
Functions : none

See Also

merge, isfulldim, isbounded


© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch