45 template <
typename TPo
int>
49 mySaveFaceColor=saveFaceColor;
56 template <
typename TPo
int>
60 mySaveFaceColor=
false;
61 myDefaultColor = aColor;
67 template <
typename TPo
int>
80 template <
typename TPo
int>
85 out <<
"[MeshFromPoints]";
92 template <
typename TPo
int>
112 template<
typename TPo
int>
116 mySaveFaceColor=
false;
117 for(
int i =0; i< vertexSet.size(); i++){
118 myVertexList.push_back(vertexSet.at(i));
125 template<
typename TPo
int>
130 myVertexList.push_back(point);
135 template<
typename TPo
int>
142 aFace.push_back(indexVertex1);
143 aFace.push_back(indexVertex2);
144 aFace.push_back(indexVertex3);
145 myFaceList.push_back(aFace);
147 myFaceColorList.push_back(aColor);
154 template<
typename TPo
int>
158 unsigned int indexVertex3,
unsigned int indexVertex4,
162 aFace.push_back(indexVertex1);
163 aFace.push_back(indexVertex2);
164 aFace.push_back(indexVertex3);
165 aFace.push_back(indexVertex4);
166 myFaceList.push_back(aFace);
168 myFaceColorList.push_back(aColor);
174 template<
typename TPo
int>
178 myFaceList.push_back(aFace);
180 myFaceColorList.push_back(aColor);
187 template<
typename TPo
int>
192 return myVertexList.at(i);
197 template<
typename TPo
int>
202 return myFaceList.at(i);
206 template<
typename TPo
int>
211 return myFaceList.size();
214 template<
typename TPo
int>
219 return myVertexList.size();
222 template<
typename TPo
int>
227 return myFaceColorList.at(i);
229 return myDefaultColor;
236 template<
typename TPo
int>
240 for(
unsigned int i=0; i<myFaceList.size(); i++){
241 vector<unsigned int> & aFace = myFaceList.at(i);
242 for(
unsigned int j=0; j < aFace.size()/2; j++){
243 unsigned int tmp=aFace.at(j);
244 aFace.at(j)=aFace.at(aFace.size()-1-j);
245 aFace.at(aFace.size()-1-j)=tmp;
253 template<
typename TPo
int>
258 return "MeshFromPoints";
265 template <
typename TPo
int>
271 object.selfDisplay( out );