Home
last modified time | relevance | path

Searched refs:bary (Results 1 – 25 of 481) sorted by relevance

12345678910>>...20

/dports/cad/meshlab/meshlab-Meshlab-2020.05/src/meshlabplugins/filter_isoparametrization/
H A Diso_transfer.h58 if (bary.V(i)<0) in Clamp()
59 bary.V(i)=0; in Clamp()
60 if (bary.V(i)>1) in Clamp()
61 bary.V(i)=1; in Clamp()
63 sum+=bary.V(i); in Clamp()
65 if (bary.V(i)>bary.V(bigger)) in Clamp()
67 if (bary.V(i)<bary.V(lower)) in Clamp()
113 if (!((bary.X()>=0)&&(bary.X()<=1)&& in Transfer()
114 (bary.Y()>=0)&&(bary.Y()<=1)&& in Transfer()
115 (bary.Z()>=0)&&(bary.Z()<=1))) in Transfer()
[all …]
H A Dlocal_parametrization.h189 return (n0*bary.X()+n1*bary.Y()+n2*bary.Z()); in InterpolateNorm()
503 {points.push_back(f.P(0)*bary.X()+f.P(1)*bary.Y()+f.P(2)*bary.Z());} in AddFace()
749 if(!(fabs(bary.X()+bary.Y()+bary.Z()-1.0)<eps)) in testBaryCoords()
751 …if(!((bary.X()<=1.0)&&(bary.X()>=-eps)&&(bary.Y()<=1.0)&&(bary.Y()>=-eps)&&(bary.Z()<=1.0)&&(bary.… in testBaryCoords()
769 if (bary.X()<0) bary.X()=EPS; in NormalizeBaryCoords()
770 if (bary.Y()<0) bary.Y()=EPS; in NormalizeBaryCoords()
771 if (bary.Z()<0) bary.Z()=EPS; in NormalizeBaryCoords()
774 if (bary.X()>1.0) bary.X()=1.0-EPS; in NormalizeBaryCoords()
779 ScalarType diff=bary.X()+bary.Y()+bary.Z()-1.0; in NormalizeBaryCoords()
801 ((bary.X()+bary.Y()+bary.Z())<=1+eps)&& in AssingFather()
[all …]
H A Dparam_flip.h64 CoordType bary=v->Bary; variable
71 if(!testBaryCoords(bary))
73 printf("BAry0 :%lf,%lf,%lf",bary.X(),bary.Y(),bary.Z());
77 InterpolateUV<BaseMesh>(father,bary,v->T().U(),v->T().V());
110 CoordType bary; variable
112 bool found=GetBaryFaceFromUV(faces,U,V,bary,index);
120 if(!testBaryCoords(bary))
122 … printf("\n PAR ERROR 1: bary coords exceeds: %f,%f,%f \n",bary.X(),bary.Y(),bary.Z());
123 NormalizeBaryCoords(bary);
131 v->Bary=bary;
[all …]
H A Diso_parametrization.h479 …v->T().P()=(faceDom->V(0)->T().P())*bary.X()+(faceDom->V(1)->T().P())*bary.Y()+(faceDom->V(2)->T()… in InitStar()
1059 if ((bary.X()>bary.Y())&&(bary.X()>bary.Z())) in getHStarIndex()
1062 if ((bary.Y()>bary.X())&&(bary.Y()>bary.Z())) in getHStarIndex()
1077 PScalarType sum0=bary.X()+bary.Y(); in getHDiamIndex()
1078 PScalarType sum1=bary.Y()+bary.Z(); in getHDiamIndex()
1079 PScalarType sum2=bary.X()+bary.Z(); in getHDiamIndex()
1356 CoordType bary; in inv_GE0() local
1455 CoordType bary; in inv_GE1() local
1635 UVFace=bary.X()*f->V(0)->T().P()+bary.Y()*f->V(1)->T().P()+bary.Z()*f->V(2)->T().P(); in GE2()
1935 &bary.X(),&bary.Y(),&bary.Z(),
[all …]
H A Dtangent_space.h196 done&=Sum(I,bary,XP,I0,bary0,domain);
197 done&=Sum(I,bary,XM,I1,bary1,domain);
198 done&=Sum(I,bary,YP,I2,bary2,domain);
199 done&=Sum(I,bary,YM,I3,bary3,domain);
237 assert((bary.X()>=0)&&(bary.X()<=1));
238 assert((bary.Y()>=0)&&(bary.Y()<=1));
239 assert((bary.X()+bary.Y()<=1));
254 bool b1=Sum(I,bary,vect,I1,bary1,domain0);
266 bool b2=Sub(I,bary,I1,bary1,vect1,domain);
298 isoParamTheta(I,bary,origin);
[all …]
/dports/science/liggghts/LIGGGHTS-PUBLIC-3.8.0-26-g6e873439/src/
H A Dtri_mesh_I.h59 double bary[3]; in resolveTriSphereContact() local
71 bary[0] = bary[1] = bary[2] = 0.; in resolveTriSphereContactBary()
135 bary[iEdge] = 1.; bary[ip] = 0.; bary[ipp] = 0.; in resolveEdgeContactBary()
142 bary[iEdge] = 0.; bary[ip] = 1.; bary[ipp] = 0.; in resolveEdgeContactBary()
155 bary[ipp] = 0.; in resolveEdgeContactBary()
157 bary[ip] = 1. - bary[iEdge]; in resolveEdgeContactBary()
192 bary[ipp] = 1. - bary[iNode]; in resolveCornerContactBary()
200 bary[ipp] = 1.; bary[iNode] = bary[ip] = 0.; in resolveCornerContactBary()
217 bary[ip] = 1. - bary[iNode]; in resolveCornerContactBary()
225 bary[ip] = 1.; bary[iNode] = bary[ipp] = 0.; in resolveCornerContactBary()
[all …]
H A Dtri_mesh_I_superquadric.h52 double bary[3]; in resolveTriSuperquadricContact() local
59 double *delta, double *contactPoint, Superquadric particle, double *bary) in resolveTriSuperquadricContact() argument
93 vectorCopy3D(baryFace, bary); in resolveTriSuperquadricContact()
170 vectorCopy3D(baryEdge, bary); in resolveTriSuperquadricContact()
175 vectorCopy3D(baryFace, bary); in resolveTriSuperquadricContact()
191 bary[0] = bary[1] = bary[2] = 0.; in pointToTriangleDistance()
200 …int barySign = (bary[0] > -precision_trimesh()*invlen) + 2*(bary[1] > -precision_trimesh()*invlen)… in pointToTriangleDistance()
213 d = resolveEdgeContactBary(nTri,0,cSphere,delta,bary, treatActiveFlag); in pointToTriangleDistance()
219 d = resolveEdgeContactBary(nTri,2,cSphere,delta,bary, treatActiveFlag); in pointToTriangleDistance()
222 d = resolveEdgeContactBary(nTri,1,cSphere,delta,bary, treatActiveFlag); in pointToTriangleDistance()
[all …]
H A Dtri_mesh.h79 … double *contactPoint,double *bary,int &barysign,bool skip_inactive=true);
84 …uadricContact(int nTri, double *normal, double *contactPoint, Superquadric particle, double *bary);
88 …ntToTriangleDistance(int iTri, double *Csphere, double *delta, bool treatActiveFlag, double *bary);
99 … double *delta, double &segmentParameter, double *bary,int &barysign);
123 … double *p, double *delta, double *bary,bool skip_inactive = true);
124 …double resolveEdgeContactBary(int iTri, int iEdge, double *p, double *delta, double *bary,bool ski…
/dports/math/geogram/geogram-1.7.7/src/lib/geogram_gfx/GLUP/shaders/GLUPES/
H A Dfragment_shader_utils.h3 float cell_edge_factor(in vec2 bary) { in cell_edge_factor() argument
4 return edge_factor1(1.0-(1.0 - bary.x)*(1.0 - bary.y)); in cell_edge_factor()
7 float edge_factor(in vec4 bary) { in edge_factor() argument
11 return edge_factor3(bary.xyz); in edge_factor()
13 return edge_factor4(bary); in edge_factor()
15 e1 = cell_edge_factor(bary.xy); in edge_factor()
16 e2 = cell_edge_factor(bary.xz); in edge_factor()
17 e3 = cell_edge_factor(bary.xw); in edge_factor()
20 e6 = cell_edge_factor(bary.zw); in edge_factor()
23 vec3 u = bary.xyz; in edge_factor()
[all …]
/dports/science/axom/axom-0.6.1/src/axom/primal/geometry/
H A DTetrahedron.hpp106 Point<double, 4> bary; in physToBarycentric() local
144 bary[0] = det1 * detScale; in physToBarycentric()
145 bary[1] = det2 * detScale; in physToBarycentric()
146 bary[2] = det3 * detScale; in physToBarycentric()
147 bary[3] = det4 * detScale; in physToBarycentric()
150 axom::utilities::isNearlyEqual(bary[0] + bary[1] + bary[2] + bary[3], 1.), in physToBarycentric()
152 << (bary[0] + bary[1] + bary[2] + bary[3])); in physToBarycentric()
154 return bary; in physToBarycentric()
H A DTriangle.hpp182 Point<double, 3> bary; in physToBarycentric() local
216 bary[0] = ood * in physToBarycentric()
221 bary[1] = ood * in physToBarycentric()
226 bary[2] = 1. - bary[0] - bary[1]; in physToBarycentric()
228 return bary; in physToBarycentric()
236 PointType baryToPhysical(const Point<double, 3>& bary) const in baryToPhysical()
239 axom::utilities::isNearlyEqual(1., bary[0] + bary[1] + bary[2]), in baryToPhysical()
245 res[i] = bary[0] * m_points[0][i] + bary[1] * m_points[1][i] + in baryToPhysical()
246 bary[2] * m_points[2][i]; in baryToPhysical()
/dports/graphics/wings/libigl-2.1.0/include/igl/
H A Duniformly_sample_two_manifold.cpp126 Eigen::Vector3d bary(0,0,0); in uniformly_sample_two_manifold() local
127 bary( VFi[S(i)][0] ) = 1; in uniformly_sample_two_manifold()
128 sample_barys[i].push_back(bary); in uniformly_sample_two_manifold()
154 (bary(0) > bary(1) ? (bary(0) > bary(2) ? 0 : 2) in uniformly_sample_two_manifold()
155 : (bary(1) > bary(2) ? 1 : 2)); in uniformly_sample_two_manifold()
169 bary(0)*W.row(F(face_i,0)) + in uniformly_sample_two_manifold()
170 bary(1)*W.row(F(face_i,1)) + in uniformly_sample_two_manifold()
171 bary(2)*W.row(F(face_i,2)); in uniformly_sample_two_manifold()
338 bary(0)*W.row(F(face_i,0)) + in uniformly_sample_two_manifold()
339 bary(1)*W.row(F(face_i,1)) + in uniformly_sample_two_manifold()
[all …]
/dports/cad/PrusaSlicer/PrusaSlicer-version_2.3.3/src/libigl/igl/
H A Duniformly_sample_two_manifold.cpp126 Eigen::Vector3d bary(0,0,0); in uniformly_sample_two_manifold() local
127 bary( VFi[S(i)][0] ) = 1; in uniformly_sample_two_manifold()
128 sample_barys[i].push_back(bary); in uniformly_sample_two_manifold()
154 (bary(0) > bary(1) ? (bary(0) > bary(2) ? 0 : 2) in uniformly_sample_two_manifold()
155 : (bary(1) > bary(2) ? 1 : 2)); in uniformly_sample_two_manifold()
169 bary(0)*W.row(F(face_i,0)) + in uniformly_sample_two_manifold()
170 bary(1)*W.row(F(face_i,1)) + in uniformly_sample_two_manifold()
171 bary(2)*W.row(F(face_i,2)); in uniformly_sample_two_manifold()
338 bary(0)*W.row(F(face_i,0)) + in uniformly_sample_two_manifold()
339 bary(1)*W.row(F(face_i,1)) + in uniformly_sample_two_manifold()
[all …]
/dports/games/gtkradiant/GPL/GtkRadiant/tools/quake3/q3map2/
H A Ddecals.c107 dvec3_t bary, xyz; in MakeTextureMatrix() local
133 bary[ 0 ] = ((b->st[ 0 ] - s) * (c->st[ 1 ] - t) - (c->st[ 0 ] - s) * (b->st[ 1 ] - t)) / bb; in MakeTextureMatrix()
137 origin[ 0 ] = bary[ 0 ] * pa[ 0 ] + bary[ 1 ] * pb[ 0 ] + bary[ 2 ] * pc[ 0 ]; in MakeTextureMatrix()
138 origin[ 1 ] = bary[ 0 ] * pa[ 1 ] + bary[ 1 ] * pb[ 1 ] + bary[ 2 ] * pc[ 1 ]; in MakeTextureMatrix()
139 origin[ 2 ] = bary[ 0 ] * pa[ 2 ] + bary[ 1 ] * pb[ 2 ] + bary[ 2 ] * pc[ 2 ]; in MakeTextureMatrix()
149 xyz[ 0 ] = bary[ 0 ] * pa[ 0 ] + bary[ 1 ] * pb[ 0 ] + bary[ 2 ] * pc[ 0 ]; in MakeTextureMatrix()
150 xyz[ 1 ] = bary[ 0 ] * pa[ 1 ] + bary[ 1 ] * pb[ 1 ] + bary[ 2 ] * pc[ 1 ]; in MakeTextureMatrix()
151 xyz[ 2 ] = bary[ 0 ] * pa[ 2 ] + bary[ 1 ] * pb[ 2 ] + bary[ 2 ] * pc[ 2 ]; in MakeTextureMatrix()
163 xyz[ 0 ] = bary[ 0 ] * pa[ 0 ] + bary[ 1 ] * pb[ 0 ] + bary[ 2 ] * pc[ 0 ]; in MakeTextureMatrix()
164 xyz[ 1 ] = bary[ 0 ] * pa[ 1 ] + bary[ 1 ] * pb[ 1 ] + bary[ 2 ] * pc[ 1 ]; in MakeTextureMatrix()
[all …]
/dports/games/netradiant/netradiant-20150621-src/tools/quake3/q3map2/
H A Ddecals.c104 dvec3_t bary, xyz; in MakeTextureMatrix() local
131bary[ 0 ] = ( ( b->st[ 0 ] - s ) * ( c->st[ 1 ] - t ) - ( c->st[ 0 ] - s ) * ( b->st[ 1 ] - t ) ) … in MakeTextureMatrix()
135 origin[ 0 ] = bary[ 0 ] * pa[ 0 ] + bary[ 1 ] * pb[ 0 ] + bary[ 2 ] * pc[ 0 ]; in MakeTextureMatrix()
136 origin[ 1 ] = bary[ 0 ] * pa[ 1 ] + bary[ 1 ] * pb[ 1 ] + bary[ 2 ] * pc[ 1 ]; in MakeTextureMatrix()
137 origin[ 2 ] = bary[ 0 ] * pa[ 2 ] + bary[ 1 ] * pb[ 2 ] + bary[ 2 ] * pc[ 2 ]; in MakeTextureMatrix()
147 xyz[ 0 ] = bary[ 0 ] * pa[ 0 ] + bary[ 1 ] * pb[ 0 ] + bary[ 2 ] * pc[ 0 ]; in MakeTextureMatrix()
148 xyz[ 1 ] = bary[ 0 ] * pa[ 1 ] + bary[ 1 ] * pb[ 1 ] + bary[ 2 ] * pc[ 1 ]; in MakeTextureMatrix()
149 xyz[ 2 ] = bary[ 0 ] * pa[ 2 ] + bary[ 1 ] * pb[ 2 ] + bary[ 2 ] * pc[ 2 ]; in MakeTextureMatrix()
161 xyz[ 0 ] = bary[ 0 ] * pa[ 0 ] + bary[ 1 ] * pb[ 0 ] + bary[ 2 ] * pc[ 0 ]; in MakeTextureMatrix()
162 xyz[ 1 ] = bary[ 0 ] * pa[ 1 ] + bary[ 1 ] * pb[ 1 ] + bary[ 2 ] * pc[ 1 ]; in MakeTextureMatrix()
[all …]
/dports/math/freefem++/FreeFem-sources-4.6/src/fflib/
H A DP1IsoValue.cpp205 R2 Q1=bary(K,f,j0,j1,v); in UnderIso()
206 R2 Q2=bary(K,f,j0,j2,v); in UnderIso()
296 P[1]=bary(K,f,i0,k0,v); in UnderIso()
297 P[2]=bary(K,f,i0,k1,v); in UnderIso()
299 P[4]=bary(K,f,i1,k0,v); in UnderIso()
300 P[5]=bary(K,f,i1,k1,v); in UnderIso()
316 P[0]=bary(K,f,i1,k0,v); in UnderIso()
317 P[1]=bary(K,f,i2,k0,v); in UnderIso()
318 P[2]=bary(K,f,i3,k0,v); in UnderIso()
417 Q[0]=bary(K,f,h,b[0],v); in IsoLineK()
[all …]
/dports/science/teem/teem-1.11.0-src/src/ell/
H A DvecEll.c172 ell_3v_barycentric_spherical_d(double bary[3], in ell_3v_barycentric_spherical_d()
179 bary[0] = ell_3v_area_spherical_d(vv, bv, cv); in ell_3v_barycentric_spherical_d()
180 bary[1] = ell_3v_area_spherical_d(vv, cv, av); in ell_3v_barycentric_spherical_d()
181 bary[2] = ell_3v_area_spherical_d(vv, av, bv); in ell_3v_barycentric_spherical_d()
182 sum = bary[0] + bary[1] + bary[2]; in ell_3v_barycentric_spherical_d()
184 ELL_3V_SCALE(bary, 1.0/sum, bary); in ell_3v_barycentric_spherical_d()
/dports/math/geogram/geogram-1.7.7/src/lib/geogram_gfx/GLUP/shaders/GLUP/
H A Dfragment_shader_utils.h74 float edge_factor1(in float bary) { in edge_factor1() argument
75 float d = fwidth(bary); in edge_factor1()
76 float a = smoothstep(0.0, d*GLUP.mesh_width, bary); in edge_factor1()
80 float edge_factor3(in vec3 bary) { in edge_factor3() argument
81 vec3 d = fwidth(bary); in edge_factor3()
83 vec3(0.0, 0.0, 0.0), d*GLUP.mesh_width, bary in edge_factor3()
88 float edge_factor4(in vec4 bary) { in edge_factor4() argument
89 vec4 d = fwidth(bary); in edge_factor4()
91 vec4(0.0, 0.0, 0.0, 0.0), d*GLUP.mesh_width, bary in edge_factor4()
/dports/emulators/mess/mame-mame0226/src/devices/cpu/mb86235/
H A Dmb86235d.cpp362 int bary = (opcode >> 4) & 7; in dasm_double_xfer1() local
389 int bary = (opcode >> 4) & 7; in dasm_double_xfer1() local
552 int bary = (opcode >> 7) & 7; in dasm_double_xfer2() local
565 case 0x4: util::stream_format(stream, "B(@BAR%d+BAR%d)", barx, bary); break; in dasm_double_xfer2()
566 case 0x5: util::stream_format(stream, "B(@BAR%d+BAR%d++)", barx, bary); break; in dasm_double_xfer2()
567 case 0x6: util::stream_format(stream, "B(@BAR%d+BAR%d--)", barx, bary); break; in dasm_double_xfer2()
569 case 0x8: util::stream_format(stream, "B(@BAR%d+BAR%dU)", barx, bary); break; in dasm_double_xfer2()
570 case 0x9: util::stream_format(stream, "B(@BAR%d+BAR%dL)", barx, bary); break; in dasm_double_xfer2()
572 case 0xb: util::stream_format(stream, "B(@BAR%d+BAR%d+%02X)", barx, bary, disp3); break; in dasm_double_xfer2()
574 case 0xd: util::stream_format(stream, "B(@BAR%d+[BAR%d++])", barx, bary); break; in dasm_double_xfer2()
[all …]
/dports/emulators/mame/mame-mame0226/src/devices/cpu/mb86235/
H A Dmb86235d.cpp362 int bary = (opcode >> 4) & 7; in dasm_double_xfer1() local
389 int bary = (opcode >> 4) & 7; in dasm_double_xfer1() local
552 int bary = (opcode >> 7) & 7; in dasm_double_xfer2() local
565 case 0x4: util::stream_format(stream, "B(@BAR%d+BAR%d)", barx, bary); break; in dasm_double_xfer2()
566 case 0x5: util::stream_format(stream, "B(@BAR%d+BAR%d++)", barx, bary); break; in dasm_double_xfer2()
567 case 0x6: util::stream_format(stream, "B(@BAR%d+BAR%d--)", barx, bary); break; in dasm_double_xfer2()
569 case 0x8: util::stream_format(stream, "B(@BAR%d+BAR%dU)", barx, bary); break; in dasm_double_xfer2()
570 case 0x9: util::stream_format(stream, "B(@BAR%d+BAR%dL)", barx, bary); break; in dasm_double_xfer2()
572 case 0xb: util::stream_format(stream, "B(@BAR%d+BAR%d+%02X)", barx, bary, disp3); break; in dasm_double_xfer2()
574 case 0xd: util::stream_format(stream, "B(@BAR%d+[BAR%d++])", barx, bary); break; in dasm_double_xfer2()
[all …]
/dports/math/plplot-ada/plplot-5.15.0/examples/c/
H A Dx32c.c109 PLFLT px[5], py[5], mx[2], my[2], wx[2], wy[2], barx[2], bary[2]; in plfbox() local
162 bary[0] = lw; in plfbox()
164 bary[1] = lw; in plfbox()
167 plline( 2, barx, bary ); in plfbox()
179 bary[0] = uw; in plfbox()
180 bary[1] = uw; in plfbox()
183 plline( 2, barx, bary ); in plfbox()
/dports/math/plplot/plplot-5.15.0/examples/c/
H A Dx32c.c109 PLFLT px[5], py[5], mx[2], my[2], wx[2], wy[2], barx[2], bary[2]; in plfbox() local
162 bary[0] = lw; in plfbox()
164 bary[1] = lw; in plfbox()
167 plline( 2, barx, bary ); in plfbox()
179 bary[0] = uw; in plfbox()
180 bary[1] = uw; in plfbox()
183 plline( 2, barx, bary ); in plfbox()
/dports/graphics/blender/blender-2.91.0/source/blender/gpu/shaders/
H A Dgpu_shader_codegen_lib.glsl23 vec2 bary;
24 bary.x = float((vertid % 3) == 0);
25 bary.y = float((vertid % 3) == 1);
26 return bary;
36 # define barycentric_resolve(bary) hair_resolve_barycentric(bary)
58 # define barycentric_resolve(bary) bary
/dports/audio/gogglesmm/gogglesmm-1.2.2/cfox/lib/
H A DFXDockSite.cpp557 by=bary; in moveVerBar()
560 if(bary<bar->getY()){ in moveVerBar()
568 if(bary<pos){ in moveVerBar()
569 if(barh==bar->getHeight()){bary=pos;}else{barh=bary+barh-pos;bary=pos;} in moveVerBar()
575 pos=bary; in moveVerBar()
618 if(bary+barh>pos){ in moveVerBar()
619 if(barh==bar->getHeight()){bary=pos-barh;}else{barh=pos-bary;} in moveVerBar()
866 if(bary<top) bary=top; in resizeToolBar()
867 if(bary+barh>top+h) bary=top+h-barh; in resizeToolBar()
893 docky=bary; in moveToolBar()
[all …]
/dports/x11-toolkits/fox17/fox-1.7.77/lib/
H A DFXDockSite.cpp557 by=bary; in moveVerBar()
560 if(bary<bar->getY()){ in moveVerBar()
568 if(bary<pos){ in moveVerBar()
569 if(barh==bar->getHeight()){bary=pos;}else{barh=bary+barh-pos;bary=pos;} in moveVerBar()
575 pos=bary; in moveVerBar()
618 if(bary+barh>pos){ in moveVerBar()
619 if(barh==bar->getHeight()){bary=pos-barh;}else{barh=pos-bary;} in moveVerBar()
866 if(bary<top) bary=top; in resizeToolBar()
867 if(bary+barh>top+h) bary=top+h-barh; in resizeToolBar()
893 docky=bary; in moveToolBar()
[all …]

12345678910>>...20