25 #include "g-map-vertex.hh"
29 using namespace GMap3d;
51 FParameterPolylinePosition->getNbVertices()==0 )
55 FMap->createPolyline(FParameterPolylinePosition->getVertices());
69 CTransformationMatrix matrix =
70 FParameterObjectPosition[
OBJECT_POLYGON]->getTransformationMatrix();
75 FMap->applyMatrix(matrix, FMap->createRegularPolygon(n), ORBIT_CC);
89 CTransformationMatrix matrix =
90 FParameterObjectPosition[
OBJECT_MESH]->getTransformationMatrix();
98 CDart * handle1, * handle2;
105 handle1 = FMap->createMesh1(SD==0 ? 1 : SX);
106 FMap->applyMatrix(matrix, handle1, ORBIT_CC);
111 case 1:
setMessage(
"Edge meshed created");
break;
112 default:
return false;
118 handle1 = FMap->createSquareIMeshed(SX, SY, SD);
119 FMap->applyMatrix(matrix, handle1, ORBIT_CC);
124 case 1:
setMessage(
"Square 1-meshed created");
break;
125 case 2:
setMessage(
"Square 2-meshed created");
break;
126 default:
return false;
134 handle1 = FMap->createMesh3(SX, SY, SZ);
149 FMap->createCubeIMeshed(SX,SY,SZ, SD, created, & handle1, & handle2);
154 case 1:
setMessage(
"Cube 1-meshed created");
break;
155 case 2:
setMessage(
"Cube 2-meshed created");
break;
156 default:
return false;
160 FMap->applyMatrix(matrix, handle1, ORBIT_CC);
163 FMap->applyMatrix(matrix, handle2, ORBIT_CC);
167 default:
return false;
181 CTransformationMatrix matrix =
190 FMap->applyMatrix(matrix, FMap->createCylinder(M, P, C1, C2), ORBIT_CC);
204 CTransformationMatrix matrix =
205 FParameterObjectPosition[
OBJECT_PYRAMID]->getTransformationMatrix();
212 FMap->applyMatrix(matrix, FMap->createPyramid(M, P, C), ORBIT_CC);
226 CTransformationMatrix matrix =
227 FParameterObjectPosition[
OBJECT_SPHERE]->getTransformationMatrix();
233 FMap->applyMatrix(matrix, FMap->createSphere(M, P), ORBIT_CC);
247 CTransformationMatrix matrix =
248 FParameterObjectPosition[
OBJECT_TORUS]->getTransformationMatrix();
255 FMap->applyMatrix(matrix, FMap->createTorus(M, P, R), ORBIT_CC);
266 *dSin(180.0/FParameterCreation->getPolygonNbEdges());
274 TCoordinate s = AValue/dSin(180.0/FParameterCreation->getPolygonNbEdges());
281 FParameterCreation->setPolygonNbEdges(AValue);
288 FMap->randomizeDarts();