Colour gradient number remapping

FWIW, here’s an older version of the component we use to color analysis meshes. It uses a couple of methods I’ve posted here and there (1, 2, 3). As noted in one of those topics, the primary bottleneck here is still unwelding the mesh, which would likely be faster by skipping the normal checking. But still, the colorMeshFaces method here is likely substantially faster (~60ms) than the methods posted above I suspect, admittedly without checking:


200818_ColorMeshFaces_AHD_00.gh (441.8 KB)

Edit: The input mesh is actually already unwelded here, so if we skip that step it computes twice as fast:


200818_ColorMeshFaces_AHD_01.gh (441.5 KB)

4 Likes