meshplot icon indicating copy to clipboard operation
meshplot copied to clipboard

Fix colors for tetrahedral mesh

Open stefsmeets opened this issue 3 years ago • 0 comments

Hi,

Tetrahedral meshes are converted to triangle meshes internally. If a color array is specified with the same length as the number of tetrahedra, meshplot gives an error: Invalid color array given! Supported are numpy arrays. <class 'numpy.ndarray'>

This PR adds a fix that repeats the color array 4 times, so that the color array matches the number of triangles generated.

stefsmeets avatar Oct 11 '21 14:10 stefsmeets