Home
last modified time | relevance | path

Searched refs:Vec3T (Results 1 – 25 of 69) sorted by relevance

123

/dports/misc/openvdb/openvdb-9.0.0/openvdb/openvdb/math/
H A DBBox.h22 template<typename Vec3T>
35 BBox(const Vec3T& xyzMin, const Vec3T& xyzMax);
40 BBox(const Vec3T& xyzMin, const Vec3T& xyzMax, bool sorted);
156 BBox<Vec3T>::BBox(const Vec3T& xyzMin, const Vec3T& xyzMax): in BBox()
163 BBox<Vec3T>::BBox(const Vec3T& xyzMin, const Vec3T& xyzMax, bool sorted): in BBox()
171 BBox<Vec3T>::BBox(const Vec3T& xyzMin, const ElementType& length): in BBox()
252 inline Vec3T
267 BBox<Vec3T>::isInside(const Vec3T& xyz) const in isInside()
333 BBox<Vec3T>::expand(const Vec3T& xyz) in expand()
366 BBox<Vec3T>::translate(const Vec3T& dx) in translate()
[all …]
H A DRay.h34 using Vec3T = Vec3Type; variable
97 inline const Vec3T& eye() const {return mEye;} in eye()
99 inline const Vec3T& dir() const {return mDir;} in dir()
101 inline const Vec3T& invDir() const {return mInvDir;} in invDir()
137 const Vec3T eye = map.applyMap(mEye); in applyMap()
138 const Vec3T dir = map.applyJacobian(mDir); in applyMap()
154 const Vec3T eye = map.applyInverseMap(mEye); in applyInverseMap()
185 const Vec3T origin = mEye - center; in intersects()
217 inline bool clip(const Vec3T& center, RealT radius) in clip()
286 inline bool intersects(const Vec3T& normal, const Vec3T& point, RealT& t) const in intersects()
[all …]
/dports/misc/openvdb/openvdb-9.0.0/openvdb/openvdb/unittest/
H A DTestRay.cc61 typedef RayT::Vec3T Vec3T; in TEST_F() typedef
62 typedef math::BBox<Vec3T> BBoxT; in TEST_F()
91 Vec3T eye(9,1,1), dir(1,2,0); in TEST_F()
132 Vec3T eye(9,1,1), dir(1,2,0); in TEST_F()
197 EXPECT_TRUE(ray.intersects(BBoxT(Vec3T(1.5, 2.0, 2.0), Vec3T(4.5, 4.0, 6.0)), t0, t1)); in TEST_F()
208 const Vec3T dir(-1.0, 2.0, 3.0); in TEST_F()
209 const Vec3T eye( 2.0, 1.0, 1.0); in TEST_F()
214 Vec3T center(2.0,3.0,4.0); in TEST_F()
225 center = Vec3T(3.0,3.0,4.0); in TEST_F()
231 const Vec3T dir(-1.0, 2.0, 3.0); in TEST_F()
[all …]
H A DTestLevelSetRayIntersector.cc41 typedef RayT::Vec3Type Vec3T; in TEST_F() typedef
56 Vec3T xyz(0); in TEST_F()
84 Vec3T xyz(0); in TEST_F()
111 Vec3T xyz(0); in TEST_F()
140 Vec3T xyz(0); in TEST_F()
170 Vec3T xyz(0); in TEST_F()
200 Vec3T xyz(0); in TEST_F()
231 Vec3T xyz(0); in TEST_F()
262 Vec3T xyz(0); in TEST_F()
290 Vec3T xyz(0); in TEST_F()
[all …]
H A DTestVolumeRayIntersector.cc35 typedef RayT::Vec3Type Vec3T; in TEST_F() typedef
43 const Vec3T dir( 1.0, 0.0, 0.0); in TEST_F()
44 const Vec3T eye(-1.0, 0.0, 0.0); in TEST_F()
60 const Vec3T dir( 1.0, 0.0, 0.0); in TEST_F()
61 const Vec3T eye(-1.0, 0.0, 0.0); in TEST_F()
77 const Vec3T dir( 1.0, 0.0, 0.0); in TEST_F()
78 const Vec3T eye(-1.0, 0.0, 0.0); in TEST_F()
94 const Vec3T dir( 1.0, 0.0, 0.0); in TEST_F()
95 const Vec3T eye(-1.0, 0.0, 0.0); in TEST_F()
112 const Vec3T dir( 1.0, 0.0, 0.0); in TEST_F()
[all …]
/dports/misc/openvdb/openvdb-9.0.0/nanovdb/nanovdb/examples/benchmark/
H A DDenseGrid.h48 template<typename Vec3T>
50 template<typename Vec3T>
52 template<typename Vec3T>
54 template<typename Vec3T>
56 template<typename Vec3T>
57 __hostdev__ Vec3T applyIJT(const Vec3T& xyz) const { return mMap.applyIJT(xyz); } in applyIJT()
59 template<typename Vec3T>
61 template<typename Vec3T>
63 template<typename Vec3T>
65 template<typename Vec3T>
[all …]
H A DCamera.h19 template<typename RealT = float, typename Vec3T = Vec3<RealT>, typename RayT = Ray<RealT>>
22 Vec3T mEye, mW, mU, mV;
39 …__hostdev__ Camera(const Vec3T& eye, const Vec3T& lookat, const Vec3T& up, RealT vfov, RealT aspec… in Camera()
47 …__hostdev__ void update(const Vec3T& eye, const Vec3T& lookat, const Vec3T& up, RealT vfov, RealT … in update()
63 __hostdev__ const Vec3T& P() const { return mEye; } in P()
64 __hostdev__ const Vec3T& U() const { return mU; } in U()
65 __hostdev__ const Vec3T& V() const { return mV; } in V()
66 __hostdev__ const Vec3T& W() const { return mW; } in W()
H A DBenchmark.cc152 using Vec3T = nanovdb::Vec3<RealT>; in TEST_F() typedef
155 using BBoxT = nanovdb::BBox<Vec3T>; in TEST_F()
161 const Vec3T eye(2.0, 1.0, 1.0); in TEST_F()
178 EXPECT_TRUE(ray.clip(BBoxT(Vec3T(1.5, 2.0, 2.0), Vec3T(4.5, 4.0, 6.0)))); in TEST_F()
210 EXPECT_TRUE( ray.clip(BBoxT(Vec3T(1.5, 2.0, 2.0), Vec3T(4.5, 4.0, 6.0))) ); in TEST_F()
229 using Vec3T = RayT::Vec3T; in TEST_F() typedef
279 const Vec3T eye(0, 0, 0); in TEST_F()
295 const Vec3T eye(0, 0, 0); in TEST_F()
312 const Vec3T eye(0, 0, 0); in TEST_F()
478 Vec3T grad(-v); in TEST_F()
[all …]
/dports/misc/openvdb/openvdb-9.0.0/nanovdb/nanovdb/util/
H A DSampleFromVoxels.h54 __hostdev__ inline CoordT Floor(Vec3T<RealT>& xyz);
58 __hostdev__ inline CoordT Floor(Vec3T<float>& xyz) in Floor()
99 template<typename Vec3T>
128 template<typename Vec3T>
138 template<typename Vec3T>
160 template<typename Vec3T>
192 …static inline __hostdev__ Vec3T<ValueT> gradient(const Vec3T<RealT> &uvw, const ValueT (&v)[2][2][…
310 inline __hostdev__ Vec3T<ValueT> gradient(Vec3T<RealT> xyz) const;
349 inline __hostdev__ Vec3T<ValueT> gradient(Vec3T<RealT> xyz) const;
380 Vec3T<typename TreeOrAccT::ValueType> SampleFromVoxels<TreeOrAccT, 1, true>::gradient(Vec3T<RealT> … in gradient()
[all …]
H A DRay.h23 using Vec3T = Vec3Type; variable
153 __hostdev__ Vec3T operator()(RealT time) const in operator()
156 return Vec3T(fmaf(time, mDir[0], mEye[0]), in operator()
191 const Vec3T eye = map.applyMap(mEye); in applyMap()
192 const Vec3T dir = map.applyJacobian(mDir); in applyMap()
203 const Vec3T eye = map.applyMapF(mEye); in applyMapF()
204 const Vec3T dir = map.applyJacobianF(mDir); in applyMapF()
244 const Vec3T eye = grid.indexToWorldF(mEye); in indexToWorldF()
280 const Vec3T origin = mEye - center; in intersects()
544 __hostdev__ bool intersects(const Vec3T& normal, const Vec3T& point, RealT& t) const in intersects()
[all …]
/dports/misc/openvdb/openvdb-9.0.0/nanovdb/nanovdb/
H A DNanoVDB.h1409 __hostdev__ inline Vec3T matMult(const float* mat, const Vec3T& xyz)
1417 __hostdev__ inline Vec3T matMult(const double* mat, const Vec3T& xyz)
1443 __hostdev__ inline Vec3T matMultT(const float* mat, const Vec3T& xyz)
1451 __hostdev__ inline Vec3T matMultT(const double* mat, const Vec3T& xyz)
1517 __hostdev__ BaseBBox(const Vec3T& min, const Vec3T& max)
1531 struct BBox<Vec3T, true> : public BaseBBox<Vec3T>
1539 : BaseT(Vec3T( Maximum<typename Vec3T::ValueType>::value()),
1540 Vec3T(-Maximum<typename Vec3T::ValueType>::value()))
1543 __hostdev__ BBox(const Vec3T& min, const Vec3T& max)
2023 __hostdev__ Vec3T applyInverseMap(const Vec3T& xyz) const
[all …]
/dports/misc/openvdb/openvdb-9.0.0/nanovdb/nanovdb/examples/ex_raytrace_level_set/
H A Dcommon.h88 template<typename Vec3T>
92 Vec3T mWBBoxCenter;
94 inline RayGenOp(float wBBoxDimZ, Vec3T wBBoxCenter) in RayGenOp()
100 inline __hostdev__ void operator()(int i, int w, int h, Vec3T& outOrigin, Vec3T& outDir) const in operator()
116 const Vec3T origin = mWBBoxCenter + Vec3T(0, 0, mWBBoxDimZ); in operator()
117 Vec3T dir(Px, Py, -1.f); in operator()
H A Dopenvdb.cc29 using Vec3T = openvdb::math::Vec3<RealT>; in runOpenVDB() typedef
52 Vec3T wBBoxCenter = Vec3T(worldBBox.min() + worldBBox.extents() * 0.5f); in runOpenVDB()
54 RayGenOp<Vec3T> rayGenOp(wBBoxDimZ, wBBoxCenter); in runOpenVDB()
64 Vec3T rayEye; in runOpenVDB()
65 Vec3T rayDir; in runOpenVDB()
H A Dnanovdb.cu26 using Vec3T = nanovdb::Vec3<RealT>; in runNanoVDB() typedef
36Vec3T wBBoxCenter = Vec3T(h_grid->worldBBox().min() + h_grid->worldBBox().dim() * 0.5… in runNanoVDB()
42 RayGenOp<Vec3T> rayGenOp(wBBoxDimZ, wBBoxCenter); in runNanoVDB()
50 Vec3T rayEye; in runNanoVDB()
51 Vec3T rayDir; in runNanoVDB()
/dports/misc/openvdb/openvdb-9.0.0/nanovdb/nanovdb/examples/ex_raytrace_fog_volume/
H A Dcommon.h88 template<typename Vec3T>
92 Vec3T mWBBoxCenter;
94 inline RayGenOp(float wBBoxDimZ, Vec3T wBBoxCenter) in RayGenOp()
100 inline __hostdev__ void operator()(int i, int w, int h, Vec3T& outOrigin, Vec3T& outDir) const in operator()
116 const Vec3T origin = mWBBoxCenter + Vec3T(0, 0, mWBBoxDimZ); in operator()
117 Vec3T dir(Px, Py, -1.f); in operator()
H A Dopenvdb.cc29 using Vec3T = openvdb::math::Vec3<RealT>; in runOpenVDB() typedef
43 Vec3T wBBoxCenter = Vec3T(worldBBox.min() + worldBBox.extents() * 0.5f); in runOpenVDB()
45 RayGenOp<Vec3T> rayGenOp(wBBoxDimZ, wBBoxCenter); in runOpenVDB()
57 Vec3T rayEye; in runOpenVDB()
58 Vec3T rayDir; in runOpenVDB()
H A Dnanovdb.cu24 using Vec3T = nanovdb::Vec3<RealT>; in runNanoVDB() typedef
34Vec3T wBBoxCenter = Vec3T(h_grid->worldBBox().min() + h_grid->worldBBox().dim() * 0.5… in runNanoVDB()
40 RayGenOp<Vec3T> rayGenOp(wBBoxDimZ, wBBoxCenter); in runNanoVDB()
48 Vec3T rayEye; in runNanoVDB()
49 Vec3T rayDir; in runNanoVDB()
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/rgbd/src/
H A Dnormal.cpp64 typedef Vec<T, 3> Vec3T; in computeThetaPhi() typedef
75 const Vec3T * row_points = points3d.ptr < Vec3T > (y), *row_points_end = points3d.ptr < Vec3T in computeThetaPhi()
190 typedef Vec<T, 3> Vec3T; typedef in cv::rgbd::FALS
254 Vec3T *row_B = B[0]; in compute()
261 *row_B = Vec3T(); in compute()
273 Vec3T *normal = normals.ptr<Vec3T>(0); in compute()
284 Vec3T Br = *B_vec; in compute()
293 Mat_<Vec3T> V_;
324 typedef Vec<T, 3> Vec3T; typedef in cv::rgbd::LINEMOD
416 Vec3T *normal = normals.ptr<Vec3T>(y, r); in computeImpl()
[all …]
/dports/devel/flatbuffers/flatbuffers-2.0.0/tests/MyGame/Example/
H A DVec3.cs47 public Vec3T UnPack() { in UnPack()
48 var _o = new Vec3T(); in UnPack()
52 public void UnPackTo(Vec3T _o) { in UnPackTo()
60 public static Offset<MyGame.Example.Vec3> Pack(FlatBufferBuilder builder, Vec3T _o) { in Pack()
76 public class Vec3T class
91 public Vec3T() { in Vec3T() method in MyGame.Example.Vec3T
H A DVec3.go9 type Vec3T struct { struct
18 func (t *Vec3T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { argument
22 func (rcv *Vec3) UnPackTo(t *Vec3T) { argument
31 func (rcv *Vec3) UnPack() *Vec3T {
33 t := &Vec3T{}
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/google/flatbuffers/tests/MyGame/Example/
H A DVec3.cs47 public Vec3T UnPack() { in UnPack()
48 var _o = new Vec3T(); in UnPack()
52 public void UnPackTo(Vec3T _o) { in UnPackTo()
60 public static Offset<MyGame.Example.Vec3> Pack(FlatBufferBuilder builder, Vec3T _o) { in Pack()
76 public class Vec3T class
91 public Vec3T() { in Vec3T() method in MyGame.Example.Vec3T
H A DVec3.go9 type Vec3T struct { struct
18 func (t *Vec3T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { argument
22 func (rcv *Vec3) UnPackTo(t *Vec3T) { argument
31 func (rcv *Vec3) UnPack() *Vec3T {
33 t := &Vec3T{}
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/flatbuffers/src/tests/MyGame/Example/
H A DVec3.cs47 public Vec3T UnPack() { in UnPack()
48 var _o = new Vec3T(); in UnPack()
52 public void UnPackTo(Vec3T _o) { in UnPackTo()
60 public static Offset<MyGame.Example.Vec3> Pack(FlatBufferBuilder builder, Vec3T _o) { in Pack()
74 public class Vec3T class
89 public Vec3T() { in Vec3T() method in MyGame.Example.Vec3T
H A DVec3.go9 type Vec3T struct { struct
18 func (t *Vec3T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { argument
22 func (rcv *Vec3) UnPackTo(t *Vec3T) { argument
31 func (rcv *Vec3) UnPack() *Vec3T {
33 t := &Vec3T{}
/dports/misc/openvdb/openvdb-9.0.0/openvdb/openvdb/tools/
H A DPotentialFlow.h57 template<typename Vec3T, typename GridT, typename MaskT>
58 typename GridT::template ValueConverter<Vec3T>::Type::Ptr
60 const typename GridT::template ValueConverter<Vec3T>::Type::ConstPtr boundaryVelocity,
61 const Vec3T& backgroundVelocity);
241 template<typename Vec3T, typename GridT, typename MaskT>
245 const typename GridT::template ValueConverter<Vec3T>::Type::ConstPtr boundaryVelocity, in createPotentialFlowNeumannVelocities()
246 const Vec3T& backgroundVelocity) in createPotentialFlowNeumannVelocities()
248 using Vec3GridT = typename GridT::template ValueConverter<Vec3T>::Type; in createPotentialFlowNeumannVelocities()
263 if (backgroundVelocity == zeroVal<Vec3T>() && in createPotentialFlowNeumannVelocities()
340 using Vec3T = const typename Vec3GridT::ValueType; in computePotentialFlow() local
[all …]

123