Home
last modified time | relevance | path

Searched refs:Vec3i (Results 1 – 25 of 219) sorted by relevance

123456789

/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/include/osg/
H A DVec3i21 class Vec3i
34 Vec3i() { _v[0]=0; _v[1]=0; _v[2]=0; }
40 inline bool operator < (const Vec3i& v) const
57 inline void set( const Vec3i& rhs)
82 inline Vec3i operator * (value_type rhs) const
87 inline Vec3i operator / (value_type rhs) const
92 inline Vec3i operator + (value_type rhs) const
97 inline Vec3i operator - (value_type rhs) const
102 inline Vec3i operator + (const Vec3i& rhs) const
107 inline Vec3i operator - (const Vec3i& rhs) const
[all …]
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/include/osg/
H A DVec3i21 class Vec3i
34 Vec3i() { _v[0]=0; _v[1]=0; _v[2]=0; }
40 inline bool operator < (const Vec3i& v) const
57 inline void set( const Vec3i& rhs)
82 inline Vec3i operator * (value_type rhs) const
87 inline Vec3i operator / (value_type rhs) const
92 inline Vec3i operator + (value_type rhs) const
97 inline Vec3i operator - (value_type rhs) const
102 inline Vec3i operator + (const Vec3i& rhs) const
107 inline Vec3i operator - (const Vec3i& rhs) const
[all …]
/dports/astro/stellarium/stellarium-0.21.3/src/tests/
H A DtestVecMath.cpp197 Vec3i vi; in testVec3Math()
204 vi+=Vec3i(5,5,5); in testVec3Math()
206 vi-=Vec3i(2,2,2); in testVec3Math()
212 vi = Vec3i(1,1,1) + Vec3i(9,9,9); in testVec3Math()
214 vi = Vec3i(5,5,5) - Vec3i(6,6,6); in testVec3Math()
216 vi = Vec3i(5,5,5)^Vec3i(6,6,6); in testVec3Math()
218 QVERIFY(Vec3i(10,10,10) * Vec3i(2,1,5)==80); in testVec3Math()
225 vi = Vec3i(1); in testVec3Math()
228 vi = Vec3i(10); in testVec3Math()
230 Vec3i vt(1,2,3); in testVec3Math()
[all …]
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/rgbd/src/
H A Dhash_tsdf.cpp83 cv::Vec3i coord;
210 const Vec3i tsdf_idx = Vec3i(i, j, k); in integrate()
258 std::vector<Vec3i> totalVolUnits; in integrate()
368 Vec3i volumeUnitIdx = Vec3i(volumeIdx[0] >> volumeUnitDegree, in at()
379 cv::Vec3i volUnitLocalIdx = volumeIdx - cv::Vec3i(volumeUnitIdx[0] << volumeUnitDegree, in at()
412 Vec3i volUnitLocalIdx = point - Vec3i(volumeUnitIdx[0] << volumeUnitDegree, in atVolumeUnit()
478 Vec3i iv(ix, iy, iz); in interpolateVoxelPoint()
920 TsdfVoxel new_atVolumeUnit(const Vec3i& point, const Vec3i& volumeUnitIdx, int indx) const;
1087 const Vec3i tsdf_idx = Vec3i(i, j, k); in allocateVolumeUnits()
1370 Vec3i volUnitLocalIdx = point - Vec3i(volumeUnitIdx[0] << volumeUnitDegree, in new_atVolumeUnit()
[all …]
H A Dvolume.cpp28 params.resolution = Vec3i::all(512); in defaultParams()
44 params.resolution = Vec3i::all(512); in defaultParams()
61 params->resolution = Vec3i::all(128); in coarseParams()
74 params->resolution = Vec3i::all(128); in coarseParams()
95 float _truncateThreshold, Vec3i _resolution) in makeVolume()
H A Dtsdf_functions.hpp99 inline size_t calc_hash(Vec3i x) const in calc_hash()
114 int insert(Vec3i idx) in insert()
158 int find(Vec3i idx) const in find()
228 bool insert(Vec3i idx, int row) in insert()
272 int findRow(Vec3i idx) const in findRow()
290 inline int getPos(Vec3i idx, int bufferNum) const in getPos()
296 inline size_t calc_hash(Vec3i x) const in calc_hash()
/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/src/osgPlugins/jpeg/
H A DReaderWriterJPEG.cpp881 … osg::Vec3i(0, pOsgImage->t(), 0), in readJPGStream()
882 osg::Vec3i(0, 0, 1)); in readJPGStream()
890 osg::Vec3i(0, 0, 1)); in readJPGStream()
896 … osg::Vec3i(pOsgImage->s(), 0, 0), in readJPGStream()
898 osg::Vec3i(0, 0, 1)); in readJPGStream()
906 osg::Vec3i(0, 0, 1)); in readJPGStream()
912 … osg::Vec3i(0, pOsgImage->t(), 0), in readJPGStream()
914 osg::Vec3i(0, 0, 1)); in readJPGStream()
919 osg::Vec3i(0, 0, 0), in readJPGStream()
922 osg::Vec3i(0, 0, 1)); in readJPGStream()
[all …]
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/src/osgPlugins/jpeg/
H A DReaderWriterJPEG.cpp883 … osg::Vec3i(0, pOsgImage->t(), 0), in readJPGStream()
884 osg::Vec3i(0, 0, 1)); in readJPGStream()
892 osg::Vec3i(0, 0, 1)); in readJPGStream()
898 … osg::Vec3i(pOsgImage->s(), 0, 0), in readJPGStream()
900 osg::Vec3i(0, 0, 1)); in readJPGStream()
908 osg::Vec3i(0, 0, 1)); in readJPGStream()
914 … osg::Vec3i(0, pOsgImage->t(), 0), in readJPGStream()
916 osg::Vec3i(0, 0, 1)); in readJPGStream()
921 osg::Vec3i(0, 0, 0), in readJPGStream()
924 osg::Vec3i(0, 0, 1)); in readJPGStream()
[all …]
/dports/misc/openvdb/openvdb-9.0.0/openvdb_ax/openvdb_ax/test/integration/
H A DTestDeclare.cc129 mHarness.addExpectedAttributes<openvdb::Vec3i>({"vec_int_test", "vec_int_test2"}, in testNewVectorAttributes()
130 {openvdb::Vec3i::zero(), openvdb::Vec3i(5, 6, 7)}); in testNewVectorAttributes()
136 mHarness.addInputVolumes<openvdb::Vec3i>({"vec_int_test", "vec_int_test2"}, in testNewVectorAttributes()
137 {openvdb::Vec3i::zero(), openvdb::Vec3i(5, 6, 7)}); in testNewVectorAttributes()
151 mHarness.addAttributes<openvdb::Vec3i>({"vec_int_test", "vec_int_test2"}, in testVectorAttributes()
152 {openvdb::Vec3i::zero(), openvdb::Vec3i(5, 6, 7)}); in testVectorAttributes()
H A DTestTernary.cc36 mHarness.addAttribute<openvdb::Vec3i>("ternary_test8", openvdb::Vec3i(1,2,3)); in testTernary()
45 mHarness.addAttribute<openvdb::Vec3i>("ternary_test17", openvdb::Vec3i(1,2,3)); in testTernary()
46 mHarness.addAttribute<openvdb::Vec3i>("ternary_test18", openvdb::Vec3i(4,5,6)); in testTernary()
/dports/graphics/blender/blender-2.91.0/extern/mantaflow/preprocessed/
H A Dfastmarch.cpp156 void FastMarch<COMP, TDIR>::addToList(const Vec3i &p, const Vec3i &src) in addToList()
266 Vec3i p = ce.p; in performMarching()
309 static const Vec3i nb[6] = {Vec3i(1, 0, 0), in op()
321 Vec3i p(i, j, k); in op()
627 Vec3i dir = 0; in extrapolateMACSimple()
717 static const Vec3i nb[6] = {Vec3i(1, 0, 0), in op()
729 Vec3i p(i, j, k); in op()
818 Vec3i dir = 0; in extrapolateMACFromWeight()
870 static const Vec3i nb[6] = {Vec3i(1, 0, 0),
898 Vec3i p(i, j, k); in op()
[all …]
H A Dmultigrid.h39 GridMg(const Vec3i &gridSize);
102 Vec3i vecIdx(int v, int l) const in vecIdx()
104 return Vec3i(v % mSize[l].x, in vecIdx()
108 int linIdx(Vec3i V, int l) const in linIdx()
112 bool inGrid(Vec3i V, int l) const in inGrid()
142 Vec3i U, W, N;
159 std::vector<Vec3i> mSize, mPitch;
166 Vec3i mStencilMin;
167 Vec3i mStencilMax;
H A Dmultigrid.cpp32 Vec3i VEC; \
39 Vec3i VEC; \
327 Vec3i p7stencil[7] = {Vec3i(0, 0, 0), in GridMg()
363 return dot(p1.U + 1, Vec3i(1, 3, 9)) < dot(p2.U + 1, Vec3i(1, 3, 9)); in GridMg()
374 Vec3i V = vecIdx(v, 0); in analyzeStencil()
1274 Vec3i N = V + S; in op()
1305 typedef Vec3i type2;
1339 const Vec3i &blockSize;
1350 const Vec3i a[8] = {Vec3i(0, 0, 0), in smoothGS()
1415 Vec3i N = V + S; in op()
[all …]
H A Dlevelset.cpp35 static const Vec3i neighbors[6] = {Vec3i(-1, 0, 0),
524 const Vec3i p(i, j, k); in doReinitMarch()
563 const Vec3i p(i, j, k); in doReinitMarch()
591 const Vec3i p(i, j, k); in doReinitMarch()
764 std::stack<Vec3i> todoPos; in floodFill()
769 Vec3i bnd(2 * boundaryWidth); in floodFill()
791 Vec3i c(i, j, k); in floodFill()
844 Vec3i c, cTmp; in fillHoles()
845 std::stack<Vec3i> undoPos; in fillHoles()
847 std::stack<Vec3i> todoPos; in fillHoles()
[all …]
H A Dfastmarch.h120 Vec3i p;
143 Vec3i p;
198 void addToList(const Vec3i &p, const Vec3i &src);
235 template<int C> inline Real calcWeights(int &okCnt, int &invcnt, Real *v, const Vec3i &idx);
237 inline Real calculateDistance(const Vec3i &pos);
/dports/math/openmesh/OpenMesh-8.1/src/OpenMesh/Core/Utils/
H A Dcolor_cast.hh120 struct color_caster<Vec3i,Vec3f>
122 typedef Vec3i return_type;
126 return Vec3i( (int)(_src[0]* 255.0f + 0.5f), in cast()
133 struct color_caster<Vec3i,Vec4f>
135 typedef Vec3i return_type;
139 return Vec3i( (int)(_src[0]* 255.0f + 0.5f), in cast()
242 struct color_caster<Vec4f,Vec3i>
246 inline static return_type cast(const Vec3i& _src) in cast()
/dports/graphics/opencv/opencv-4.5.3/modules/dnn/test/
H A Dtest_halide_layers.cpp142 Values(Vec3i(6, 4, 1), Vec3i(6, 9, 1),
143 Vec3i(6, 4, 2), Vec3i(6, 9, 3)),
218 Values(Vec3i(6, 4, 1), Vec3i(6, 9, 3)),
275 /*input ch,w,h*/ Values(Vec3i(6, 5, 8), Vec3i(7, 11, 6)),
715 typedef TestWithParam<tuple<Vec3i, Vec3i, tuple<Backend, Target> > > Concat;
725 && inSize == Vec3i(1, 4, 5) && numChannels == Vec3i(1, 6, 2) in TEST_P()
732 && inSize == Vec3i(1, 4, 5) && numChannels == Vec3i(1, 6, 2) in TEST_P()
782 /*input size*/ Values(Vec3i(1, 4, 5), Vec3i(2, 8, 6)),
783 /*channels*/ Values(Vec3i(2, 0, 0), Vec3i(3, 4, 0), Vec3i(1, 6, 2)),
807 inSize == Vec3i(1, 4, 5)) in TEST_P()
[all …]
/dports/misc/openvdb/openvdb-9.0.0/openvdb/openvdb/unittest/
H A DTestVec3Metadata.cc19 Metadata::Ptr m(new Vec3IMetadata(openvdb::Vec3i(1, 1, 1))); in TEST_F()
29 EXPECT_TRUE(s->value() == openvdb::Vec3i(1, 1, 1)); in TEST_F()
30 s->value() = openvdb::Vec3i(3, 3, 3); in TEST_F()
31 EXPECT_TRUE(s->value() == openvdb::Vec3i(3, 3, 3)); in TEST_F()
36 EXPECT_TRUE(s->value() == openvdb::Vec3i(3, 3, 3)); in TEST_F()
H A DTestMetadata.cc75 Vec3IMetadata meta(Vec3i(0)); in TEST_F()
77 meta.setValue(Vec3i(-1, 0, 1)); in TEST_F()
99 const Vec3i expected(1, 2, 3); in TEST_F()
120 EXPECT_EQ(sizeof(Vec3i), size_t(meta.size())); in TEST_F()
122 EXPECT_EQ(expected, *reinterpret_cast<const Vec3i*>(&meta.value()[0])); in TEST_F()
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/ovis/samples/
H A Dovis_demo.cpp37 …owin->createEntity("sinbad", "Sinbad.mesh", Vec3i(0, 0, 5), Vec3f(CV_PI/2.0, 0.0, 0.0)); // extern… in main()
38 owin->createLightEntity("sun", Vec3i(0, 0, -100)); in main()
47 iwin->createEntity("sinbad", "Sinbad.mesh", Vec3i(0, -5, 0), Vec3f(CV_PI, 0.0, 0.0)); in main()
48 iwin->createLightEntity("sun", Vec3i(0, 0, -100)); in main()
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/optflow/samples/
H A Dtvl1_optical_flow.cpp34 static Vec3i colorWheel[NCOLS]; in computeColor()
41 colorWheel[k] = Vec3i(255, 255 * i / RY, 0); in computeColor()
44 colorWheel[k] = Vec3i(255 - 255 * i / YG, 255, 0); in computeColor()
47 colorWheel[k] = Vec3i(0, 255, 255 * i / GC); in computeColor()
50 colorWheel[k] = Vec3i(0, 255 - 255 * i / CB, 255); in computeColor()
53 colorWheel[k] = Vec3i(255 * i / BM, 0, 255); in computeColor()
56 colorWheel[k] = Vec3i(255, 0, 255 - 255 * i / MR); in computeColor()
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/src/osg/
H A DImage.cpp800 osg::Vec3i footprint = computeBlockFootprint(format); in computePixelSizeInBits()
874 osg::Vec3i Image::computeBlockFootprint(GLenum pixelFormat) in computeBlockFootprint()
901 return osg::Vec3i(4, 4, 1);//not sure about r in computeBlockFootprint()
905 case (GL_COMPRESSED_RGBA_ASTC_4x4_KHR) : return osg::Vec3i(4, 4, 1); in computeBlockFootprint()
906 case (GL_COMPRESSED_RGBA_ASTC_5x4_KHR) : return osg::Vec3i(5, 4, 1); in computeBlockFootprint()
907 case (GL_COMPRESSED_RGBA_ASTC_5x5_KHR) : return osg::Vec3i(5, 5, 1); in computeBlockFootprint()
908 case (GL_COMPRESSED_RGBA_ASTC_6x5_KHR) : return osg::Vec3i(6, 5, 1); in computeBlockFootprint()
909 case (GL_COMPRESSED_RGBA_ASTC_6x6_KHR) : return osg::Vec3i(6, 6, 1); in computeBlockFootprint()
937 return osg::Vec3i(1,1,1); in computeBlockFootprint()
1026 osg::Vec3i footprint = computeBlockFootprint(pixelFormat); in computeImageSizeInBytes()
[all …]
/dports/graphics/blender/blender-2.91.0/extern/mantaflow/preprocessed/plugin/
H A Dwaveletturbulence.cpp35 Vec3i s1, Vec3i s2, Vec3i optSize, Vec3 scale, Vec3 &sourceFactor, Vec3 &retOff) in calcGridSizeFactorMod()
50 Vec3i size = Vec3i(-1, -1, -1), in interpolateGrid()
79 Vec3i size = _args.getOpt<Vec3i>("size", 4, Vec3i(-1, -1, -1), &_lock); in _W_0()
105 Vec3i size = Vec3i(-1, -1, -1), in interpolateGridVec3()
126 Vec3i size = _args.getOpt<Vec3i>("size", 4, Vec3i(-1, -1, -1), &_lock); in _W_1()
252 Vec3i size = Vec3i(-1, -1, -1), in interpolateMACGrid()
273 Vec3i size = _args.getOpt<Vec3i>("size", 4, Vec3i(-1, -1, -1), &_lock); in _W_2()
1143 const Vec3i nb[6] = {Vec3i(1, 0, 0), in extrapolSimpleFlagsHelper()
1145 Vec3i(0, 1, 0), in extrapolSimpleFlagsHelper()
1156 tmp(Vec3i(i, j, k)) = 1; in extrapolSimpleFlagsHelper()
[all …]
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/cudaoptflow/samples/
H A Doptical_flow.cpp34 static Vec3i colorWheel[NCOLS]; in computeColor()
41 colorWheel[k] = Vec3i(255, 255 * i / RY, 0); in computeColor()
44 colorWheel[k] = Vec3i(255 - 255 * i / YG, 255, 0); in computeColor()
47 colorWheel[k] = Vec3i(0, 255, 255 * i / GC); in computeColor()
50 colorWheel[k] = Vec3i(0, 255 - 255 * i / CB, 255); in computeColor()
53 colorWheel[k] = Vec3i(255 * i / BM, 0, 255); in computeColor()
56 colorWheel[k] = Vec3i(255, 0, 255 - 255 * i / MR); in computeColor()
/dports/devel/bullet/bullet3-3.21/examples/TinyRenderer/
H A Dmodel.cpp46 std::vector<Vec3i> f; in Model()
47 Vec3i tmp; in Model()
110 std::vector<Vec3i> f; in addTriangle()
111 f.push_back(Vec3i(vertexposIndex0, normalIndex0, uvIndex0)); in addTriangle()
112 f.push_back(Vec3i(vertexposIndex1, normalIndex1, uvIndex1)); in addTriangle()
113 f.push_back(Vec3i(vertexposIndex2, normalIndex2, uvIndex2)); in addTriangle()

123456789