Skip to content

Commit d6a2bd8

Browse files
committed
update polyscope to v2.0 and fix main.cpp accordingly (+ gc to latest)
1 parent 3071d7a commit d6a2bd8

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

deps/geometry-central

Submodule geometry-central updated 44 files

deps/polyscope

Submodule polyscope updated 266 files

src/main.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,15 @@ int main(int argc, char **argv) {
8989
// Set vertex tangent spaces
9090
geometry->requireVertexTangentBasis();
9191
VertexData<Vector3> vBasisX(*mesh);
92+
VertexData<Vector3> vBasisY(*mesh);
9293
for (Vertex v : mesh->vertices()) {
9394
vBasisX[v] = geometry->vertexTangentBasis[v][0];
95+
vBasisY[v] = geometry->vertexTangentBasis[v][1];
9496
}
95-
psMesh->setVertexTangentBasisX(vBasisX);
9697

9798
auto vField =
9899
geometrycentral::surface::computeSmoothestVertexDirectionField(*geometry);
99-
psMesh->addVertexIntrinsicVectorQuantity("VF", vField);
100+
psMesh->addVertexTangentVectorQuantity("VF", vField, vBasisX, vBasisY);
100101

101102
// Give control to the polyscope gui
102103
polyscope::show();

0 commit comments

Comments
 (0)