Concatenates two simplicial complexes
npm install simplicial-disjoint-union
var disjointUnion = require"simplicial-disjoint-union"//Example://// Combine a bunny and teapot into a single mesh////First read in meshesvar bunny = require"bunny"teapot = require"teapot"//Then combine positionsvar combinedPos = bunnypositionsconcatteapotpositions//Finally combine cells using simplicial-disjoint-unionvar combinedCells = disjointUniontbunnycells teapotcells
Joins two simplicial complexes together.
bare the complexes we are going to join
a_vertsan optional parameter giving the number of vertices in
aif not specified, is computed dynamically.
Returns The cells in
a concatenated to the cells in
b, with the vertices in
b relabeled by those in a's length.