/dports/devel/emscripten/emscripten-2.0.3/tests/ |
H A D | gl_subdata.cpp | 56 const int nbNodes = 512; variable 57 NodeInfo data[nbNodes]; //our data that will be transmitted using float texture. 61 for (float x=0; x < nbNodes; ++x ) { in updateFloatTexture() 62 …ount].x = 0.2*pow(cos(alpha), 3) + (sin(alpha)*3. + 3.5) * x/nbNodes * cos(alpha + x/nbNodes * 16.… in updateFloatTexture() 63 …ount].y = 0.2*pow(sin(alpha), 3) + (sin(alpha)*3. + 3.5) * x/nbNodes * sin(alpha + x/nbNodes * 16.… in updateFloatTexture() 65 data[count].c = 0.5 + 0.5 * sin(alpha + x/nbNodes * 32. * M_PI); in updateFloatTexture() 96 glDrawArrays(GL_POINTS, 0, nbNodes); in glut_draw_callback() 117 std::vector<float> elements(nbNodes); in gl_init() 119 for (float x=0; x < nbNodes; ++x ) { in gl_init() 128 float zeroes[nbNodes]; in gl_init() [all …]
|
H A D | float_tex.cpp | 57 const int nbNodes = 512; variable 58 NodeInfo * data = new NodeInfo[nbNodes]; //our data that will be transmitted using float texture. 62 for (float x=0; x < nbNodes; ++x ) { in updateFloatTexture() 63 …ount].x = 0.2*pow(cos(alpha), 3) + (sin(alpha)*3. + 3.5) * x/nbNodes * cos(alpha + x/nbNodes * 16.… in updateFloatTexture() 64 …ount].y = 0.2*pow(sin(alpha), 3) + (sin(alpha)*3. + 3.5) * x/nbNodes * sin(alpha + x/nbNodes * 16.… in updateFloatTexture() 65 …data[count].s = (16. + 16. * cos(alpha + x/nbNodes * 32. * M_PI)) + 8.;// * fmod(x/nbNodes + alpha… in updateFloatTexture() 66 data[count].c = 0.5 + 0.5 * sin(alpha + x/nbNodes * 32. * M_PI); in updateFloatTexture() 76 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, nbNodes, 1, 0, GL_RGBA, GL_FLOAT, data); in updateFloatTexture() 96 glDrawArrays(GL_POINTS, 0, nbNodes); in glut_draw_callback() 127 std::vector<float> elements(nbNodes); in gl_init() [all …]
|
/dports/cad/opencascade/opencascade-7.6.0/src/BinMDataXtd/ |
H A D | BinMDataXtd_TriangulationDriver.cxx | 57 Standard_Integer nbNodes(0), nbTriangles(0); in Paste() local 61 theSource >> nbNodes; in Paste() 66 if (!nbNodes || !nbTriangles) in Paste() 72 Handle(Poly_Triangulation) PT = new Poly_Triangulation(nbNodes, nbTriangles, hasUV); in Paste() 78 for (i = 1; i <= nbNodes; i++) in Paste() 89 for (i = 1; i <= nbNodes; i++) in Paste() 123 Standard_Integer nbNodes = PT->NbNodes(); in Paste() local 128 theTarget << nbNodes; in Paste() 135 for (Standard_Integer i = 1; i <= nbNodes; i++) in Paste() 146 for (Standard_Integer i = 1; i <= nbNodes; i++) in Paste()
|
/dports/cad/opencascade/opencascade-7.6.0/src/Poly/ |
H A D | Poly.cxx | 87 nNodes += nbNodes; in Handle() 123 for (i = 1; i <= nbNodes; i++) in Write() 138 for (i = 1; i <= nbNodes; i++) in Write() 196 for (i = 1; i <= nbNodes; i++) { in Write() 247 for (i = 1; i <= nbNodes; i++) { in Write() 322 for (i = 1; i <= nbNodes; i++) { in Handle() 375 Standard_Integer nbNodes; in Handle() local 376 IS >> nbNodes; in Handle() 389 for (i = 1; i <= nbNodes; i++) { in Handle() 430 Standard_Integer nbNodes; in Handle() local [all …]
|
/dports/cad/opencascade/opencascade-7.6.0/src/XmlMDataXtd/ |
H A D | XmlMDataXtd_TriangulationDriver.cxx | 76 Standard_Integer nbNodes, nbTriangles, hasUV; in Paste() local 79 stream >> nbNodes >> nbTriangles >> hasUV; in Paste() 82 TColgp_Array1OfPnt Nodes(1, nbNodes); in Paste() 83 TColgp_Array1OfPnt2d UVNodes(1, nbNodes); in Paste() 85 for (i = 1; i <= nbNodes; i++) in Paste() 95 for (i = 1; i <= nbNodes; i++) { in Paste() 140 Standard_Integer nbNodes = PT->NbNodes(); in Paste() local 145 …size += 2 * 25 * nbNodes; // 2 coordinates for a 2D node * 25 characters are used to represent a c… in Paste() 155 stream << nbNodes << " " << nbTriangles << " "; in Paste() 161 for (i = 1; i <= nbNodes; i++) in Paste() [all …]
|
/dports/cad/opencascade/opencascade-7.6.0/src/GeometryTest/ |
H A D | GeometryTest_PolyCommands.cxx | 46 Standard_Integer nbNodes = Draw::Atoi(a[2]); in polytr() local 51 TColgp_Array1OfPnt Nodes(1, nbNodes); in polytr() 53 for (i = 1; i <= nbNodes; i++) { in polytr() 92 Standard_Integer nbNodes = Draw::Atoi(a[2]); in polygon3d() local 96 TColgp_Array1OfPnt Nodes(1, nbNodes); in polygon3d() 98 for (i = 1; i <= nbNodes; i++) { in polygon3d() 124 Standard_Integer nbNodes = Draw::Atoi(a[2]); in polygon2d() local 128 TColgp_Array1OfPnt2d Nodes(1, nbNodes); in polygon2d() 130 for (i = 1; i <= nbNodes; i++) { in polygon2d()
|
/dports/cad/opencascade/opencascade-7.6.0/src/MeshVS/ |
H A D | MeshVS_DataSource.cxx | 58 Standard_Integer nbNodes; in GetNormal() local 63 if ( !GetGeom ( Id, Standard_True, Coords, nbNodes, Type ) ) in GetNormal() 66 if ( Type == MeshVS_ET_Face && nbNodes >= 3 ) in GetNormal() 74 Standard_Real x3 = Coords( ( nbNodes - 1 ) * 3 + 1 ); in GetNormal() 75 Standard_Real y3 = Coords( ( nbNodes - 1 ) * 3 + 2 ); in GetNormal() 76 Standard_Real z3 = Coords( ( nbNodes - 1 ) * 3 + 3 ); in GetNormal() 325 Standard_Integer nbNodes; in GetBoundingBox() local 331 if ( !GetGeom ( aKey, Standard_False, aCoords, nbNodes, aType ) ) in GetBoundingBox()
|
/dports/math/couenne/Couenne-releases-0.5.8/Couenne/src/convex/ |
H A D | CouenneCutGenerator.cpp | 212 int nbNodes = BabPtr_->model().getNodeCount(); in printLineInfo() local 220 nbNodes, nbNodesRem, depth, cbcLb, lpVal, bestSolVal); in printLineInfo() 224 nbNodes, nbNodesRem, depth, cbcLb, lpVal); in printLineInfo() 228 (nbNodes < problem_->minNodePrint_)) { in printLineInfo()
|
/dports/devel/emscripten/emscripten-2.0.3/tests/core/ |
H A D | test_std_cout_new.cpp | 14 const int nbNodes = 100; variable 15 NodeInfo* data = new NodeInfo[nbNodes]; // our data that will be transmitted
|
/dports/math/igraph/igraph-0.9.5/src/games/ |
H A D | islands.c | 59 int nbNodes; in igraph_simple_interconnected_islands_game() local 84 nbNodes = islands_n * islands_size; in igraph_simple_interconnected_islands_game() 151 IGRAPH_CHECK(igraph_create(graph, &edges, nbNodes, 0)); in igraph_simple_interconnected_islands_game()
|
/dports/science/v_sim/v_sim-3.8.0/src/ |
H A D | visu_dataloader.c | 286 guint nbNodes; member 345 infos->nbNodes = 1; in visu_data_loader_iter_addNode() 349 infos->nbNodes += 1; in visu_data_loader_iter_addNode() 378 DBG_fprintf(stderr, " | %d -> %d.\n", infos->pos, infos->nbNodes); in _valToNb() 379 g_array_index((GArray*)data, guint, infos->pos) = infos->nbNodes; in _valToNb()
|
/dports/cad/opencascade/opencascade-7.6.0/src/BRepBndLib/ |
H A D | BRepBndLib.cxx | 84 Standard_Integer i, nbNodes; in Add() local 137 nbNodes = P3d->NbNodes(); in Add() 138 for (i = 1; i <= nbNodes; i++) in Add() 152 nbNodes = Indices.Length(); in Add() 155 for (i = 1; i <= nbNodes; i++) in Add() 162 for (i = 1; i <= nbNodes; i++) in Add() 235 Standard_Integer i, nbNodes; in AddOptimal() local 332 nbNodes = P3d->NbNodes(); in AddOptimal() 333 for (i = 1; i <= nbNodes; i++) in AddOptimal() 347 nbNodes = Indices.Length(); in AddOptimal() [all …]
|
/dports/cad/opencascade/opencascade-7.6.0/samples/mfc/standard/01_Geometry/src/ |
H A D | GeometryDoc.cpp | 1372 nbNodes = aTr->NbNodes(); in simplify() 1385 nbNodes = aPoints.Length(); in simplify() 1387 for( i = 1; i <= nbNodes; i++) in simplify() 1391 for( j = i + 1; j < nbNodes; j++) in simplify() 1406 nbNodes = aPoints1.Length(); in simplify() 1407 for(i = 2; i <= nbNodes; i++) in simplify() 1419 Standard_Integer nbLeftNodes = nbNodes; in simplify() 1423 for(i = 1; i < nbNodes; i++) in simplify() 1455 nbNodes = aPoints.Length(); in simplify() 1456 for (i = 1; i <= nbNodes; i++) in simplify() [all …]
|
/dports/cad/opencascade/opencascade-7.6.0/src/BRepTools/ |
H A D | BRepTools_ShapeSet.cxx | 1336 for (j = 1; j <= nbNodes; j++) { in WritePolygon3D() 1352 for ( i1 = 1; i1 <= nbNodes; i1++ ) { in WritePolygon3D() 1469 nbNodes = T->NbNodes(); in WriteTriangulation() 1470 for (j = 1; j <= nbNodes; j++) in WriteTriangulation() 1487 for (j = 1; j <= nbNodes; j++) in WriteTriangulation() 1520 for (j = 1; j <= nbNodes; j++) in WriteTriangulation() 1562 Standard_Integer nbNodes =0, nbTriangles=0; in ReadTriangulation() local 1576 IS >> nbNodes >> nbTriangles >> hasUV; in ReadTriangulation() 1585 for (j = 1; j <= nbNodes; j++) { in ReadTriangulation() 1593 for (j = 1; j <= nbNodes; j++) { in ReadTriangulation() [all …]
|
/dports/math/moab/fathomteam-moab-7bde9dfb84a8/src/ |
H A D | SmoothCurve.cpp | 179 int nbNodes = (int)_entities.size()*2;// the mesh edges are stored in u_from_position() local 181 nodesConnec.resize(nbNodes); in u_from_position() 182 ErrorCode rval = this->_mb->get_connectivity(&(_entities[0]), nbNodes/2, nodesConnec); in u_from_position() 189 for (int k=0; k<nbNodes/2; k++) in u_from_position() 193 int numNodes = nbNodes/2+1; in u_from_position()
|
/dports/cad/opencascade/opencascade-7.6.0/src/BRepMesh/ |
H A D | BRepMesh_Triangulator.cxx | 37 Standard_Integer nbNodes = 0; in wireNodesNb() local 41 nbNodes += itW.Value().Length(); in wireNodesNb() 44 return nbNodes; in wireNodesNb()
|
/dports/devel/rgbds/rgbds/src/link/ |
H A D | object.c | 37 uint32_t nbNodes; member 500 tryReadlong(nodes[fileID].nbNodes, file, "%s: Cannot read number of nodes: %s", fileName); in obj_ReadFile() 501 nodes[fileID].nodes = calloc(nodes[fileID].nbNodes, sizeof(nodes[fileID].nodes[0])); in obj_ReadFile() 504 verbosePrint("Reading %u nodes...\n", nodes[fileID].nbNodes); in obj_ReadFile() 505 for (uint32_t i = nodes[fileID].nbNodes; i--; ) in obj_ReadFile() 681 for (uint32_t j = 0; j < nodes[i].nbNodes; j++) { in obj_Cleanup()
|
/dports/cad/opencascade/opencascade-7.6.0/src/VrmlData/ |
H A D | VrmlData_ShapeConvert.cxx | 184 Standard_Integer nbNodes = aPT->NbNodes(); in Handle() local 185 TColgp_Array1OfPnt arrNodes(1, nbNodes); in Handle() 186 TColStd_Array1OfReal arrUVNodes(1, nbNodes); in Handle() 188 for (Standard_Integer j = 1; j <= nbNodes; j++) { in Handle() 206 const Standard_Integer nbNodes = TD.NbPoints(); in Handle() local 208 TColgp_Array1OfPnt arrNodes(1, nbNodes); in Handle() 209 TColStd_Array1OfReal arrUVNodes(1, nbNodes); in Handle() 210 for (Standard_Integer j = 1; j <= nbNodes; j++) { in Handle()
|
H A D | VrmlData_IndexedFaceSet.cxx | 153 const Standard_Integer nbNodes(mapNodeId.Extent()); in Handle() local 154 if (!nbNodes) in Handle() 238 for (i = 0; i < nbNodes; i++) in Handle()
|
/dports/math/xlife++/xlifepp-sources-v2.0.1-2018-05-09/src/utils/ |
H A D | Graph.cpp | 164 std::vector<number_t> Graph::renumber(number_t nbNodes) in renumber() argument 167 std::vector<number_t> new_Nodes(nbNodes, 0); in renumber() 170 std::vector<bool> markers(nbNodes, false); in renumber()
|
/dports/cad/gmsh/gmsh-4.9.2-source/contrib/HighOrderMeshOptimizer/ |
H A D | HighOrderMeshElasticAnalogy.cpp | 241 int nbNodes = e->getNumVertices(); in _computeMetricInfo() local 242 for(int j = 0; j < nbNodes; j++) { in _computeMetricInfo() 247 int YJ = j + nbNodes; in _computeMetricInfo() 248 int ZJ = j + 2 * nbNodes; in _computeMetricInfo() 250 int VJ = j + nbNodes; in _computeMetricInfo() 382 int nbNodes = e->getNumVertices(); in _smoothMetric() local 383 const int n2 = 2 * nbNodes; in _smoothMetric() 384 const int n3 = 3 * nbNodes; in _smoothMetric()
|
/dports/biology/velvet/velvet_1.2.10/contrib/MetaVelvet-1.2.01/Velvet-1.1.06/ |
H A D | preGraphConstruction.c | 52 IDnum nbNodes; in createNodeLocks() local 55 nbNodes = preNodeCount_pg(preGraph) + 1; in createNodeLocks() 58 nodeLocks = mallocOrExit(nbNodes, omp_lock_t); in createNodeLocks() 61 for (nodeIndex = 0; nodeIndex < nbNodes; nodeIndex++) in createNodeLocks()
|
/dports/math/xlife++/xlifepp-sources-v2.0.1-2018-05-09/tests/unit/ |
H A D | unit_ILU_TermMatrixCsStorage.cpp | 56 Number nbNodes = 4; in unit_ILU_TermMatrixCsStorage() local 61 …Mesh mesh2d(Rectangle(_xmin=0,_xmax=1,_ymin=0,_ymax=1,_nnodes=nbNodes,_side_names=sidenames),_tria… in unit_ILU_TermMatrixCsStorage()
|
/dports/biology/velvet/velvet_1.2.10/src/ |
H A D | preGraphConstruction.c | 53 IDnum nbNodes; in createNodeLocks() local 56 nbNodes = preNodeCount_pg(preGraph) + 1; in createNodeLocks() 59 nodeLocks = mallocOrExit(nbNodes, omp_lock_t); in createNodeLocks() 62 for (nodeIndex = 0; nodeIndex < nbNodes; nodeIndex++) in createNodeLocks()
|
/dports/cad/gmsh/gmsh-4.9.2-source/Geo/ |
H A D | GModelIO_VTK.cpp | 382 int nbNodes = (int)cells[i].size(); in readVTK() local 383 switch(nbNodes) { in readVTK() 391 Msg::Error("Unknown type of mesh element with %d nodes", nbNodes); in readVTK()
|