From 32680eac28328fc2c41a2f955aadc7caa1e708e4 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Fri, 16 Dec 2016 23:20:10 +0100 Subject: [PATCH] Function Name Change FaceGrid -> SparseFaceGrid --- vcg/complex/algorithms/create/platonic.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vcg/complex/algorithms/create/platonic.h b/vcg/complex/algorithms/create/platonic.h index c6ab95d0..f696c964 100644 --- a/vcg/complex/algorithms/create/platonic.h +++ b/vcg/complex/algorithms/create/platonic.h @@ -837,12 +837,13 @@ void FaceGrid(MeshType & in, int w, int h) } -// Build a regular grid mesh of faces as a typical height field mesh -// Vertexes are assumed to be already be allocated, but not oll the grid vertexes are present. -// For this purpos a grid of indexes is also passed. negative indexes means that there is no vertex. +// Build a regular grid mesh of faces as the resulto of a sparsely regularly sampled height field. +// Vertexes are assumed to be already be allocated, but not all the grid vertexes are present. +// For this purpose vector with a grid of indexes is also passed. +// Negative indexes in this vector means that there is no vertex. template -void FaceGrid(MeshType & in, const std::vector &grid, int w, int h) +void SparseFaceGrid(MeshType & in, const std::vector &grid, int w, int h) { tri::RequireCompactness(in); assert(in.vn <= w*h); // the number of vertices should match the number of expected grid vertices