/dports/graphics/embree/embree-3.13.2/tutorials/common/scenegraph/ |
H A D | geometry_creation.cpp | 150 unsigned int p11 = phi*numTheta+theta%numTheta; in createTriangleSphere() 159 unsigned int p01 = (phi-1)*numTheta+theta%numTheta; in createTriangleSphere() 169 unsigned int p01 = (phi-1)*numTheta+theta%numTheta; in createTriangleSphere() 171 unsigned int p11 = phi*numTheta+theta%numTheta; in createTriangleSphere() 209 unsigned int p11 = phi*numTheta+theta%numTheta; in createQuadSphere() 218 unsigned int p01 = (phi-1)*numTheta+theta%numTheta; in createQuadSphere() 228 unsigned int p01 = (phi-1)*numTheta+theta%numTheta; in createQuadSphere() 230 unsigned int p11 = phi*numTheta+theta%numTheta; in createQuadSphere() 299 unsigned int p11 = phi*numTheta+theta%numTheta; in createSubdivSphere() 311 unsigned int p01 = (phi-1)*numTheta+theta%numTheta; in createSubdivSphere() [all …]
|
/dports/graphics/embree/embree-3.13.2/tutorials/dynamic_scene/ |
H A D | dynamic_scene_device.cpp | 16 const int numTheta = 2*numPhi; variable 38 const float rcpNumTheta = rcp((float)numTheta); in createSphere() 42 for (int theta=0; theta<numTheta; theta++) in createSphere() 46 Vertex& v = vertices[phi*numTheta+theta]; in createSphere() 53 for (int theta=1; theta<=numTheta; theta++) in createSphere() 55 int p00 = (phi-1)*numTheta+theta-1; in createSphere() 56 int p01 = (phi-1)*numTheta+theta%numTheta; in createSphere() 57 int p10 = phi*numTheta+theta-1; in createSphere() 58 int p11 = phi*numTheta+theta%numTheta; in createSphere() 150 Vertex* v = &vertices[phi*numTheta+theta]; in animateSphere() [all …]
|
H A D | dynamic_scene_device.ispc | 14 const uniform int numTheta = 2*numPhi; 40 for (uniform int theta=0; theta<numTheta; theta++) 44 uniform Vertex& v = vertices[phi*numTheta+theta]; 51 for (uniform int theta=1; theta<=numTheta; theta++) 53 uniform int p00 = (phi-1)*numTheta+theta-1; 54 uniform int p01 = (phi-1)*numTheta+theta%numTheta; 55 uniform int p10 = phi*numTheta+theta-1; 56 uniform int p11 = phi*numTheta+theta%numTheta; 146 foreach (theta = 0 ... numTheta) 148 uniform Vertex* v = &vertices[phi*numTheta+theta]; [all …]
|
/dports/graphics/embree/embree-3.13.2/tutorials/multiscene_geometry/ |
H A D | multiscene_geometry_device.cpp | 16 const int numTheta = 2 * numPhi; variable 46 const float rcpNumTheta = rcp((float)numTheta); in createSphere() 50 for (int theta = 0; theta < numTheta; theta++) in createSphere() 54 Vertex& v = vertices[phi * numTheta + theta]; in createSphere() 61 for (int theta = 1; theta <= numTheta; theta++) in createSphere() 63 int p00 = (phi - 1) * numTheta + theta - 1; in createSphere() 64 int p01 = (phi - 1) * numTheta + theta % numTheta; in createSphere() 65 int p10 = phi * numTheta + theta - 1; in createSphere() 66 int p11 = phi * numTheta + theta % numTheta; in createSphere() 187 Vertex* v = &vertices[phi * numTheta + theta]; in animateSphere() [all …]
|
/dports/graphics/embree/embree-3.13.2/tutorials/collide/ |
H A D | collide_device.cpp | 30 extern int numTheta; 78 sphere->x_.resize (numTheta*(numPhi-1)+2); in createTriangulatedSphere() 94 for (int theta=0; theta<numTheta; theta++) in createTriangulatedSphere() 104 sphere->x_[numTheta*(numPhi-1)+1].x = p.x; in createTriangulatedSphere() 106 sphere->x_[numTheta*(numPhi-1)+1].z = p.z; in createTriangulatedSphere() 108 for (int theta=0; theta<numTheta; theta++) { in createTriangulatedSphere() 119 int p00 = phi*numTheta + 1 + theta; in createTriangulatedSphere() 120 int p01 = phi*numTheta + 1 + (theta+1)%numTheta; in createTriangulatedSphere() 121 int p10 = (phi+1)*numTheta + 1 + theta; in createTriangulatedSphere() 122 int p11 = (phi+1)*numTheta + 1 + (theta+1)%numTheta; in createTriangulatedSphere() [all …]
|
H A D | collide.cpp | 30 int numTheta = 2*numPhi; variable 168 numTheta = 2*numPhi; in Tutorial()
|
/dports/science/chrono/chrono-7.0.1/src/chrono_fsi/utils/ |
H A D | ChUtilsGeneratorBce.cpp | 42 for (Real t = 0.0; t < numTheta; t++) { in CreateBCE_On_Sphere() 43 Real teta = t * 2 * 3.1415 / numTheta; in CreateBCE_On_Sphere() 61 for (Real t = 0.0; t < numTheta; t++) { in CreateBCE_On_surface_of_Sphere() 62 Real teta = t * 2 * 3.1415 / numTheta; in CreateBCE_On_surface_of_Sphere() 94 for (size_t t = 0; t < numTheta; t++) { in CreateBCE_On_Cylinder() 95 Real teta = t * 2 * 3.1415 / numTheta; in CreateBCE_On_Cylinder() 134 Real det_Theta = 2 * 3.1415 / numTheta; in CreateBCE_On_Cone() 153 Real det_Theta = 2 * 3.1415 / numTheta; in CreateBCE_On_Cone() 154 for (size_t t = 0; t < numTheta; t++) { in CreateBCE_On_Cone() 179 for (size_t t = 0; t < numTheta; t++) { in CreateBCE_On_surface_of_Cylinder() [all …]
|
/dports/graphics/embree/embree-3.13.2/tutorials/lazy_geometry/ |
H A D | lazy_geometry_device.cpp | 9 const int numTheta = 2*numPhi; variable 55 …tryBuffer(geom, RTC_BUFFER_TYPE_VERTEX, 0, RTC_FORMAT_FLOAT3, sizeof(Vertex), numTheta*(numPhi+1)); in createTriangulatedSphere() 56 …yBuffer(geom, RTC_BUFFER_TYPE_INDEX, 0, RTC_FORMAT_UINT3, sizeof(Triangle), 2*numTheta*(numPhi-1)); in createTriangulatedSphere() 60 const float rcpNumTheta = rcp((float)numTheta); in createTriangulatedSphere() 64 for (int theta=0; theta<numTheta; theta++) in createTriangulatedSphere() 69 Vertex& v = vertices[phi*numTheta+theta]; in createTriangulatedSphere() 76 for (int theta=1; theta<=numTheta; theta++) in createTriangulatedSphere() 78 int p00 = (phi-1)*numTheta+theta-1; in createTriangulatedSphere() 79 int p01 = (phi-1)*numTheta+theta%numTheta; in createTriangulatedSphere() 80 int p10 = phi*numTheta+theta-1; in createTriangulatedSphere() [all …]
|
H A D | lazy_geometry_device.ispc | 7 const uniform int numTheta = 2*numPhi; 53 …r(geom, RTC_BUFFER_TYPE_VERTEX, 0, RTC_FORMAT_FLOAT3, sizeof(uniform Vertex), numTheta*(numPhi+1)); 54 …geom, RTC_BUFFER_TYPE_INDEX, 0, RTC_FORMAT_UINT3, sizeof(uniform Triangle), 2*numTheta*(numPhi-1)); 58 const uniform float rcpNumTheta = rcp((uniform float)numTheta); 62 for (uniform int theta=0; theta<numTheta; theta++) 67 uniform Vertex& v = vertices[phi*numTheta+theta]; 74 for (uniform int theta=1; theta<=numTheta; theta++) 76 uniform int p00 = (phi-1)*numTheta+theta-1; 77 uniform int p01 = (phi-1)*numTheta+theta%numTheta; 78 uniform int p10 = phi*numTheta+theta-1; [all …]
|
/dports/science/dakota/dakota-6.13.0-release-public.src-UI/packages/surfpack/src/surfaces/nkm/ |
H A D | NKM_KrigingModel.hpp | 103 MtxDbl corr_len(numTheta,1); in objective() 104 for(int i=0; i<numTheta; ++i) in objective() 106 correlations.newSize(numTheta,1); in objective() 118 MtxDbl corr_len(numTheta,1); in objectiveAndConstraints() 119 for(int i=0; i<numTheta; ++i) in objectiveAndConstraints() 121 correlations.newSize(numTheta,1); in objectiveAndConstraints() 125 for(int i=0; i<numTheta; ++i) in objectiveAndConstraints() 446 int numTheta; member in nkm::KrigingModel 841 archive & numTheta; in serialize() local
|
H A D | NKM_KrigingModel.cpp | 31 numTheta(numVarsr), numPoints(sdBuild.getNPts()), XR(sdBuild.xr) in KrigingModel() 577 prevTheta.newSize(numTheta,1); in create() 4446 if(prevTheta.getNElems()!=numTheta) { in masterObjectiveAndConstraints() 4448 prevTheta.newSize(numTheta,1); in masterObjectiveAndConstraints() 4452 for(int k=0; k<numTheta; ++k) in masterObjectiveAndConstraints() 4468 for(int k=0; k<numTheta; ++k) in masterObjectiveAndConstraints() 4743 opt.conminData.icndir = numTheta+1; //conjugate direction restart parameter in set_conmin_parameters()
|
/dports/graphics/embree/embree-3.13.2/tutorials/instanced_geometry/ |
H A D | instanced_geometry_device.cpp | 9 const int numTheta = 2*numPhi; variable 20 …GeometryBuffer(geom,RTC_BUFFER_TYPE_VERTEX,0,RTC_FORMAT_FLOAT3,sizeof(Vertex),numTheta*(numPhi+1)); in createTriangulatedSphere() 21 …ometryBuffer(geom,RTC_BUFFER_TYPE_INDEX,0,RTC_FORMAT_UINT3,sizeof(Triangle),2*numTheta*(numPhi-1)); in createTriangulatedSphere() 25 const float rcpNumTheta = rcp((float)numTheta); in createTriangulatedSphere() 29 for (int theta=0; theta<numTheta; theta++) in createTriangulatedSphere() 34 Vertex& v = vertices[phi*numTheta+theta]; in createTriangulatedSphere() 41 for (int theta=1; theta<=numTheta; theta++) in createTriangulatedSphere() 43 int p00 = (phi-1)*numTheta+theta-1; in createTriangulatedSphere() 44 int p01 = (phi-1)*numTheta+theta%numTheta; in createTriangulatedSphere() 45 int p10 = phi*numTheta+theta-1; in createTriangulatedSphere() [all …]
|
H A D | instanced_geometry_device.ispc | 7 const uniform int numTheta = 2*numPhi; 18 …Buffer(geom,RTC_BUFFER_TYPE_VERTEX,0,RTC_FORMAT_FLOAT3,sizeof(uniform Vertex),numTheta*(numPhi+1)); 19 …ffer(geom,RTC_BUFFER_TYPE_INDEX,0,RTC_FORMAT_UINT3,sizeof(uniform Triangle),2*numTheta*(numPhi-1)); 23 const uniform float rcpNumTheta = rcp((uniform float)numTheta); 27 for (uniform int theta=0; theta<numTheta; theta++) 32 uniform Vertex& v = vertices[phi*numTheta+theta]; 39 for (uniform int theta=1; theta<=numTheta; theta++) 41 uniform int p00 = (phi-1)*numTheta+theta-1; 42 uniform int p01 = (phi-1)*numTheta+theta%numTheta; 43 uniform int p10 = phi*numTheta+theta-1; [all …]
|
/dports/graphics/embree/embree-3.13.2/tutorials/closest_point/ |
H A D | closest_point_device.cpp | 352 const int numTheta = 4*numPhi; in createTriangulatedSphere() local 356 sphere->num_vertices = numTheta*(numPhi+1); in createTriangulatedSphere() 357 sphere->num_triangles = 2*numTheta*(numPhi-1); in createTriangulatedSphere() 363 const float rcpNumTheta = rcp((float)numTheta); in createTriangulatedSphere() 367 for (int theta=0; theta<numTheta; theta++) in createTriangulatedSphere() 372 Vertex& v = sphere->vertices[phi*numTheta+theta]; in createTriangulatedSphere() 379 for (int theta=1; theta<=numTheta; theta++) in createTriangulatedSphere() 381 int p00 = (phi-1)*numTheta+theta-1; in createTriangulatedSphere() 382 int p01 = (phi-1)*numTheta+theta%numTheta; in createTriangulatedSphere() 383 int p10 = phi*numTheta+theta-1; in createTriangulatedSphere() [all …]
|
H A D | closest_point_device.ispc | 344 const uniform int numTheta = 4*numPhi; 350 mesh.num_vertices = numTheta*(numPhi+1); 351 mesh.num_triangles = 2*numTheta*(numPhi-1); 357 const uniform float rcpNumTheta = rcp((uniform float)numTheta); 361 for (uniform int theta=0; theta<numTheta; theta++) 366 uniform Vertex& v = mesh.vertices[phi*numTheta+theta]; 373 for (uniform int theta=1; theta<=numTheta; theta++) 375 uniform int p00 = (phi-1)*numTheta+theta-1; 376 uniform int p01 = (phi-1)*numTheta+theta%numTheta; 377 uniform int p10 = phi*numTheta+theta-1; [all …]
|
/dports/graphics/embree/embree-3.13.2/tutorials/user_geometry/ |
H A D | user_geometry_device.cpp | 12 const int numTheta = 2*numPhi; variable 842 …GeometryBuffer(geom,RTC_BUFFER_TYPE_VERTEX,0,RTC_FORMAT_FLOAT3,sizeof(Vertex),numTheta*(numPhi+1)); in createTriangulatedSphere() 843 …ometryBuffer(geom,RTC_BUFFER_TYPE_INDEX,0,RTC_FORMAT_UINT3,sizeof(Triangle),2*numTheta*(numPhi-1)); in createTriangulatedSphere() 847 const float rcpNumTheta = rcp((float)numTheta); in createTriangulatedSphere() 851 for (int theta=0; theta<numTheta; theta++) in createTriangulatedSphere() 856 Vertex& v = vertices[phi*numTheta+theta]; in createTriangulatedSphere() 863 for (int theta=1; theta<=numTheta; theta++) in createTriangulatedSphere() 865 int p00 = (phi-1)*numTheta+theta-1; in createTriangulatedSphere() 866 int p01 = (phi-1)*numTheta+theta%numTheta; in createTriangulatedSphere() 867 int p10 = phi*numTheta+theta-1; in createTriangulatedSphere() [all …]
|
H A D | user_geometry_device.ispc | 10 const uniform int numTheta = 2*numPhi; 840 …Buffer(geom,RTC_BUFFER_TYPE_VERTEX,0,RTC_FORMAT_FLOAT3,sizeof(uniform Vertex),numTheta*(numPhi+1)); 841 …ffer(geom,RTC_BUFFER_TYPE_INDEX,0,RTC_FORMAT_UINT3,sizeof(uniform Triangle),2*numTheta*(numPhi-1)); 845 const uniform float rcpNumTheta = rcp((uniform float)numTheta); 849 for (uniform int theta=0; theta<numTheta; theta++) 854 uniform Vertex& v = vertices[phi*numTheta+theta]; 861 for (uniform int theta=1; theta<=numTheta; theta++) 863 uniform int p00 = (phi-1)*numTheta+theta-1; 864 uniform int p01 = (phi-1)*numTheta+theta%numTheta; 865 uniform int p10 = phi*numTheta+theta-1; [all …]
|