File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ void processFileOBJ(std::string filename) {
143143 randColor[iV] = {{polyscope::randomUnit (), polyscope::randomUnit (), polyscope::randomUnit ()}};
144144 }
145145 polyscope::getSurfaceMesh (niceName)->addVertexScalarQuantity (" cX_really_really_stupid_long_name_how_dumb" , valX);
146- polyscope::getSurfaceMesh (niceName)->addVertexScalarQuantity (" cY" , valY);
146+ auto q = polyscope::getSurfaceMesh (niceName)->addVertexScalarQuantity (" cY" , valY);
147+ q->setOnscreenColorbarEnabled (true ); // set the onscreen colormap for this one
147148 polyscope::getSurfaceMesh (niceName)->addVertexScalarQuantity (" cZ" , valZ);
148149 polyscope::getSurfaceMesh (niceName)->addVertexColorQuantity (" vColor" , randColor);
149150 polyscope::getSurfaceMesh (niceName)->addVertexScalarQuantity (" cY_sym" , valY, polyscope::DataType::SYMMETRIC );
You can’t perform that action at this time.
0 commit comments