Home
last modified time | relevance | path

Searched refs:Vec3s (Results 1 – 25 of 120) sorted by relevance

12345

/dports/misc/openvdb/openvdb-9.0.0/openvdb/openvdb/unittest/
H A DTestLinearInterp.cc179 Vec3s fillValue = Vec3s(256.0f, 256.0f, 256.0f); in TEST_F()
224 EXPECT_TRUE(val.eq(Vec3s(1.f))); in TEST_F()
227 EXPECT_TRUE(val.eq(Vec3s(2.f))); in TEST_F()
230 EXPECT_TRUE(val.eq(Vec3s(2.f))); in TEST_F()
233 EXPECT_TRUE(val.eq(Vec3s(3.f))); in TEST_F()
236 EXPECT_TRUE(val.eq(Vec3s(4.f))); in TEST_F()
350 Vec3s fillValue = Vec3s(256.0f, 256.0f, 256.0f); in TEST_F()
523 Vec3s fillValue = Vec3s(256.0f, 256.0f, 256.0f); in TEST_F()
680 Vec3s fillValue = Vec3s(256.0f, 256.0f, 256.0f); in TEST_F()
792 Vec3s fillValue = Vec3s(256.0f, 256.0f, 256.0f); in TEST_F()
[all …]
H A DTestMeshToVolume.cc64 std::vector<Vec3s> points; in TEST_F()
68 points.push_back(Vec3s(2, 2, 2)); // 0 6--------7 in TEST_F()
69 points.push_back(Vec3s(5, 2, 2)); // 1 /| /| in TEST_F()
70 points.push_back(Vec3s(2, 5, 2)); // 2 2--------3 | in TEST_F()
71 points.push_back(Vec3s(5, 5, 2)); // 3 | | | | in TEST_F()
73 points.push_back(Vec3s(5, 2, 5)); // 5 |/ |/ in TEST_F()
74 points.push_back(Vec3s(2, 5, 5)); // 6 0--------1 in TEST_F()
75 points.push_back(Vec3s(5, 5, 5)); // 7 in TEST_F()
106 typedef openvdb::Vec3s Vec3s; in TEST_F() typedef
107 typedef openvdb::math::BBox<Vec3s> BBoxs; in TEST_F()
[all …]
H A DTestLevelSetUtil.cc46 typedef openvdb::Vec3s Vec3s; in TEST_F() typedef
47 typedef openvdb::math::BBox<Vec3s> BBoxs; in TEST_F()
50 BBoxs bbox(Vec3s(0.0, 0.0, 0.0), Vec3s(1.0, 1.0, 1.0)); in TEST_F()
72 typedef openvdb::Vec3s Vec3s; in TEST_F() typedef
73 typedef openvdb::math::BBox<Vec3s> BBoxs; in TEST_F()
76 BBoxs regionA(Vec3s(0.0f, 0.0f, 0.0f), Vec3s(3.0f, 3.0f, 3.0f)); in TEST_F()
77 BBoxs regionB(Vec3s(1.0f, 1.0f, 1.0f), Vec3s(2.0f, 2.0f, 2.0f)); in TEST_F()
101 typedef openvdb::Vec3s Vec3s; in TEST_F() typedef
108 BBoxs regionA(Vec3s(0.0f, 0.0f, 0.0f), Vec3s(2.0f, 2.0f, 2.0f)); in TEST_F()
109 BBoxs regionB(Vec3s(2.5f, 0.0f, 0.0f), Vec3s(4.3f, 2.0f, 2.0f)); in TEST_F()
[all …]
H A DTestPointAdvect.cc40 std::vector<Vec3s> positions = { in TEST_F()
85 const Vec3s tolerance(1e-3f); in TEST_F()
90 Vec3s velocityBackground(1.0, 2.0, 3.0); in TEST_F()
105 Vec3s position = transform.indexToWorld( in TEST_F()
116 auto zeroVelocityGrid = Vec3SGrid::create(Vec3s(0)); in TEST_F()
120 Vec3s velocityBackground(1.0, 2.0, 3.0); in TEST_F()
145 Vec3s velocityBackground(1.0, 2.0, 3.0); in TEST_F()
325 Vec3s center(0, 0, 0); in TEST_F()
381 auto velocity = Vec3SGrid::create(Vec3s(0)); in TEST_F()
387 velocity->denseFill(activeBbox, Vec3s(0)); in TEST_F()
[all …]
H A DTestPointMove.cc115 std::vector<Vec3s>
118 std::vector<Vec3s> positions; in gridToPositions()
140 std::vector<Vec3s>
141 applyOffset(const std::vector<Vec3s>& positions, const Vec3s& offset) in applyOffset()
143 std::vector<Vec3s> newPositions; in applyOffset()
275 std::vector<Vec3s> positions = { in testCachedDeformer()
435 std::vector<Vec3s> desiredPositions; in TEST_F()
866 std::vector<Vec3s> positions = { in TEST_F()
1156 std::vector<Vec3s> positions1; in TEST_F()
1157 std::vector<Vec3s> positions2; in TEST_F()
[all …]
H A DTestActivate.cc38 tree.fill(bbox1, Vec3s(0.0), /*active=*/true); in TEST_F()
142 leaf->setValueOff(0, Vec3s(10)); in TEST_F()
143 leaf->setValueOff(1, Vec3s(2, 3, 4)); in TEST_F()
147 tools::activate(tree, Vec3s(2, 3, 5), /*tolerance=*/Vec3s(0, 0, 2)); in TEST_F()
149 tools::activate(tree, Vec3s(10), Vec3s(0.1f)); in TEST_F()
244 tools::activate(tree, Vec3s(1)); in TEST_F()
332 leaf->setValueOn(0, Vec3s(10)); in TEST_F()
333 leaf->setValueOn(1, Vec3s(2, 3, 4)); in TEST_F()
337 tools::deactivate(tree, Vec3s(2, 3, 5), /*tolerance=*/Vec3s(0, 0, 2)); in TEST_F()
339 tools::deactivate(tree, Vec3s(10), Vec3s(0.1f)); in TEST_F()
[all …]
H A DTestVec3Metadata.cc43 Metadata::Ptr m(new Vec3SMetadata(openvdb::Vec3s(1, 1, 1))); in TEST_F()
53 EXPECT_TRUE(s->value() == openvdb::Vec3s(1, 1, 1)); in TEST_F()
54 s->value() = openvdb::Vec3s(3, 3, 3); in TEST_F()
55 EXPECT_TRUE(s->value() == openvdb::Vec3s(3, 3, 3)); in TEST_F()
60 EXPECT_TRUE(s->value() == openvdb::Vec3s(3, 3, 3)); in TEST_F()
H A DTestTypes.cc36 EXPECT_TRUE_TEMP(VecTraits<Vec3s>::IsVec); in TEST_F()
65 EXPECT_TRUE(VecTraits<Vec3s>::Size == 3); in TEST_F()
130 EXPECT_TRUE_TEMP(!QuatTraits<Vec3s>::IsQuat); in TEST_F()
150 EXPECT_TRUE(QuatTraits<Vec3s>::Size == 1); in TEST_F()
170 EXPECT_TRUE(bool(std::is_same<QuatTraits<Vec3s>::ElementType, Vec3s>::value)); in TEST_F()
195 EXPECT_TRUE_TEMP(!MatTraits<Vec3s>::IsMat); in TEST_F()
217 EXPECT_TRUE(MatTraits<Vec3s>::Size == 1); in TEST_F()
239 EXPECT_TRUE(bool(std::is_same<MatTraits<Vec3s>::ElementType, Vec3s>::value)); in TEST_F()
259 EXPECT_TRUE_TEMP(ValueTraits<Vec3s>::IsVec); in TEST_F()
261 EXPECT_TRUE_TEMP(!ValueTraits<Vec3s>::IsMat); in TEST_F()
[all …]
H A DTestPointDelete.cc32 using openvdb::math::Vec3s; in TEST_F()
39 const std::vector<Vec3s> positions6Points = { in TEST_F()
47 const PointAttributeVector<Vec3s> pointList6Points(positions6Points); in TEST_F()
102 std::vector<Vec3s> positions4Points = { in TEST_F()
109 const PointAttributeVector<Vec3s> pointList4Points(positions4Points); in TEST_F()
H A DTestPointPartitioner.cc20 typedef openvdb::Vec3s PosType;
42 std::vector<openvdb::Vec3s> points(pointCount, openvdb::Vec3s(0.f)); in TEST_F()
H A DTestQuantizedUnitVec.cc47 Vec3s unitVec = Vec3s(-1.0, -1.0, -1.0); in TEST_F()
100 Vec3s n0, n1; in TEST_F()
H A DTestStats.cc457 const Vec3s background(0.0); in TEST_F()
462 grid.fill(CoordBBox::createCube(Coord(0), DIM), Vec3s(3.0, 0.0, 4.0)); // length = 5 in TEST_F()
463 grid.fill(CoordBBox::createCube(Coord(-300), DIM), Vec3s(1.0, 2.0, 2.0)); // length = 3 in TEST_F()
560 const Vec3s background(0.0); in TEST_F()
565 grid.fill(CoordBBox::createCube(Coord(0), DIM), Vec3s(3.0, 0.0, 4.0)); // length = 5 in TEST_F()
566 grid.fill(CoordBBox::createCube(Coord(-300), DIM), Vec3s(1.0, 2.0, 2.0)); // length = 3 in TEST_F()
635 const Vec3s background(0.0); in TEST_F()
637 grid.fill(CoordBBox::createCube(Coord(0), DIM), Vec3s(3.0, 0.0, 4.0)); // length = 5 in TEST_F()
638 grid.fill(CoordBBox::createCube(Coord(-300), DIM), Vec3s(1.0, 2.0, 2.0)); // length = 3 in TEST_F()
702 const Vec3s background(0.0); in TEST_F()
[all …]
H A DTestPointGroup.cc131 std::vector<Vec3s> positions{{1, 1, 1}, {1, 10, 1}, {10, 1, 1}, {10, 10, 1}}; in TEST_F()
306 std::vector<Vec3s> positions{{1, 1, 1}}; in TEST_F()
405 std::vector<Vec3s> positions = { in TEST_F()
417 const PointAttributeVector<Vec3s> pointList(positions); in TEST_F()
548 std::vector<Vec3s> positions = { in TEST_F()
557 const PointAttributeVector<Vec3s> pointList(positions); in TEST_F()
643 std::vector<Vec3s> positions(1000, {1, 1, 1}); in TEST_F()
647 const PointAttributeVector<Vec3s> pointList(positions); in TEST_F()
/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/include/osg/
H A DVec3s19 class Vec3s
55 inline void set( const Vec3s& rhs)
110 inline Vec3s operator * (const Vec3s& rhs) const
116 inline Vec3s operator + (const Vec3s& rhs) const
124 inline Vec3s& operator += (const Vec3s& rhs)
133 inline Vec3s operator - (const Vec3s& rhs) const
139 inline Vec3s& operator -= (const Vec3s& rhs)
148 inline Vec3s operator - () const
153 }; // end of class Vec3s
157 inline Vec3s componentMultiply(const Vec3s& lhs, const Vec3s& rhs)
[all …]
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/include/osg/
H A DVec3s19 class Vec3s
55 inline void set( const Vec3s& rhs)
110 inline Vec3s operator * (const Vec3s& rhs) const
116 inline Vec3s operator + (const Vec3s& rhs) const
124 inline Vec3s& operator += (const Vec3s& rhs)
133 inline Vec3s operator - (const Vec3s& rhs) const
139 inline Vec3s& operator -= (const Vec3s& rhs)
148 inline Vec3s operator - () const
153 }; // end of class Vec3s
157 inline Vec3s componentMultiply(const Vec3s& lhs, const Vec3s& rhs)
[all …]
/dports/misc/openvdb/openvdb-9.0.0/openvdb_maya/openvdb_maya/
H A DOpenVDBUtil.h334 openvdb::Vec3s(0.045f, 0.045f, 0.045f)); in operator()
360 const openvdb::Vec3s& min() const { return mMin; } in min()
365 openvdb::Vec3s mMin, mMax;
392 const openvdb::Vec3s nodeColor[2] = { in operator()
472 const openvdb::Vec3s mColor;
506 const openvdb::Vec3s color(0.9f, 0.3f, 0.3f); in operator()
716 openvdb::Vec3s (&colorMap)[4],
739 openvdb::Vec3s (&colorMap)[4],
765 openvdb::Vec3s color(0.9f, 0.3f, 0.3f); in operator()
845 openvdb::Vec3s (&mColorMap)[4];
[all …]
/dports/graphics/blender/blender-2.91.0/extern/mantaflow/preprocessed/fileio/
H A Diovdb.cpp83 openvdb::points::AttributeHandle<openvdb::Vec3s> positionHandle(positionArray); in importVDB()
89 std::vector<std::tuple<int, openvdb::points::AttributeHandle<openvdb::Vec3s>>> in importVDB()
110 openvdb::points::AttributeHandle<openvdb::Vec3s> vec3Handle(pDataArray); in importVDB()
124 openvdb::Vec3s voxelPosition = positionHandle.get(*indexIter); in importVDB()
150 for (std::tuple<int, openvdb::points::AttributeHandle<openvdb::Vec3s>> tuple : in importVDB()
156 importVDB<openvdb::Vec3s, Vec3>(voxelPosition, pdi, cnt, voxelSize); in importVDB()
249 std::vector<openvdb::Vec3s> positions; in exportVDB()
260 openvdb::Vec3s posVDB(pos.x, pos.y, pos.z); in exportVDB()
340 openvdb::points::TypedAttributeArray<openvdb::Vec3s, in registerCustomCodecs()
610 template void importVDB<openvdb::Vec3f, Vec3>(openvdb::Vec3s vdbValue,
[all …]
/dports/graphics/opencv/opencv-4.5.3/modules/imgcodecs/src/
H A Dgrfmt_gdal.cpp237 …else if( image.depth() == CV_16U ){ image.ptr<Vec3s>(row)[col] = Vec3s(newValue,newValue,newValue… in write_pixel()
238 …else if( image.depth() == CV_16S ){ image.ptr<Vec3s>(row)[col] = Vec3s(newValue,newValue,newValue… in write_pixel()
260 else if( image.depth() == CV_16U ){ (*image.ptr<Vec3s>(row,col))[channel] = newValue; } in write_pixel()
261 else if( image.depth() == CV_16S ){ (*image.ptr<Vec3s>(row,col))[channel] = newValue; } in write_pixel()
272 …else if( image.depth() == CV_16U && channel < 4 ){ (*image.ptr<Vec3s>(row,col))[channel] = newVal… in write_pixel()
273 …else if( image.depth() == CV_16S && channel < 4 ){ (*image.ptr<Vec3s>(row,col))[channel] = newVal… in write_pixel()
/dports/misc/openvdb/openvdb-9.0.0/openvdb/openvdb/math/
H A DQuantizedUnitVec.h23 static Vec3s unpack(const uint16_t data);
85 inline Vec3s
99 Vec3s vec(float(xbits) * w, float(ybits) * w, float(126 - xbits - ybits) * w); in unpack()
/dports/graphics/openvkl/openvkl-1.1.0/utility/vdb/include/openvkl/utility/vdb/
H A DOpenVdbGrid.h44 const openvdb::Vec3s *p) in addTile()
65 const openvdb::Vec3s *p) in addConstant()
74 std::vector<size_t>(3, sizeof(openvdb::Vec3s))); in addConstant()
86 const openvdb::Vec3s *p) in makeConstant()
94 std::vector<size_t>(3, sizeof(openvdb::Vec3s))); in makeConstant()
119 struct OpenVdbGridTypes<openvdb::Vec3s>
499 using OpenVdbVec3sGrid = OpenVdbGrid<openvdb::Vec3s>;
/dports/misc/openvdb/openvdb-9.0.0/openvdb/openvdb/tools/
H A DMeshToVolume.h236 const std::vector<Vec3s>& points,
246 const std::vector<Vec3s>& points,
270 const std::vector<Vec3s>& points,
280 const std::vector<Vec3s>& points,
305 const std::vector<Vec3s>& points,
316 const std::vector<Vec3s>& points,
344 const std::vector<Vec3s>& points,
3465 std::unique_ptr<Vec3s[]> indexSpacePoints{new Vec3s[numPoints]};
4209 const Vec3s pmin = Vec3s(xform.worldToIndex(bbox.min())); in createLevelSetBox()
4210 const Vec3s pmax = Vec3s(xform.worldToIndex(bbox.max())); in createLevelSetBox()
[all …]
H A DLevelSetRebuild.h100 PointListTransform(const PointList& pointsIn, std::vector<Vec3s>& pointsOut, in PointListTransform()
121 (*mPointsOut)[n] = Vec3s(mXform.worldToIndex(mPointsIn[n])); in operator()
127 std::vector<Vec3s> * const mPointsOut;
221 std::vector<Vec3s> points(mesher.pointListSize()); in doLevelSetRebuild()
249 QuadAndTriangleDataAdapter<Vec3s, Vec4I> mesh(points, primitives); in doLevelSetRebuild()
/dports/misc/openvdb/openvdb-9.0.0/openvdb/openvdb/viewer/
H A DRenderModules.cc626 openvdb::Vec3s color; in operator ()()
752 static openvdb::Vec3s sNodeColors[];
756 openvdb::Vec3s TreeTopologyOp::sNodeColors[] = {
757 openvdb::Vec3s(0.045f, 0.045f, 0.045f), // root
972 openvdb::Vec3s (&colorMap)[4], in PointAttributeGenerator()
995 openvdb::Vec3s (&colorMap)[4], in PointAttributeGenerator()
1020 openvdb::Vec3s color(0.9f, 0.3f, 0.3f); in operator ()()
1091 openvdb::Vec3s (&mColorMap)[4];
1119 openvdb::Vec3s colorMap[4]; in operator ()()
1573 const openvdb::Vec3s& p = mesher.pointList()[n]; in operator ()()
[all …]
/dports/cad/PrusaSlicer/PrusaSlicer-version_2.3.3/src/libslic3r/
H A DOpenVDBUtils.hpp10 inline Vec3f to_vec3f(const openvdb::Vec3s &v) { return Vec3f{v.x(), v.y(), v.z()}; } in to_vec3f()
11 inline Vec3d to_vec3d(const openvdb::Vec3s &v) { return to_vec3f(v).cast<double>(); } in to_vec3d()
/dports/graphics/blender/blender-2.91.0/intern/openvdb/intern/
H A Dopenvdb_level_set.cc41 std::vector<openvdb::Vec3s> points(totvertices); in mesh_to_level_set()
46 points[i] = openvdb::Vec3s(vertices[i * 3], vertices[i * 3 + 1], vertices[i * 3 + 2]); in mesh_to_level_set()
62 std::vector<openvdb::Vec3s> out_points; in volume_to_mesh()

12345