combine_disjoint_triangulations

marxs.visualization.utils.combine_disjoint_triangulations(list_xyz, list_triangles)[source] [edit on github]

Combine two disjoint triangulations into one set of points

This function combines two entirely separate triangulations into one set of point and triangles. Plotting the combined triangulation should have the same effect as plotting each triangulation separately. This function is used for plotting apertures where we have e.g. an open ring. This can be plotted as an inner circle plus an outer shape with a hole in it.

Parameters:
list_xyzlist of np.array

Each array holds xyz values for one triangulation

list_triangleslist of nd.array

Each array holds the list of the indices for one triangulation.

Returns:
xyznd.array

stacked outer and inner.

trianglesnd.array

List of the indices. Each row has the index of three points in xyz.