Skip to content

Commit

Permalink
PLY
Browse files Browse the repository at this point in the history
- Fixed vertex color
  • Loading branch information
lessthanoptimal committed Dec 22, 2023
1 parent 06c01de commit 5e60bf7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ void projectSurfaceOntoImage( VertexMesh mesh, Polygon2D_F64 polygon, int shapeI
// convex intersection or computing the depth at that pixel on this surface

// The entire surface will have one color
int color = surfaceColor.surfaceRgb(shapeIdx);
int color = surfaceColor.surfaceRgb(vertexIndex);

// Go through all pixels and see if the points are inside the polygon. If so
for (int pixelY = aabb.y0; pixelY < aabb.y1; pixelY++) {
Expand Down

0 comments on commit 5e60bf7

Please sign in to comment.