35 : fastEnvelope::FastEnvelope::FastEnvelope() {};
38 const std::vector<Eigen::Vector3d>& m_ver,
39 const std::vector<Eigen::Vector3i>& m_faces,
42 fastEnvelope::FastEnvelope::init(m_ver, m_faces, eps);
44 bool is_outside(
const std::array<Eigen::Vector3d, 3>& tris)
const
46 return fastEnvelope::FastEnvelope::is_outside(tris);
48 bool is_outside(
const Eigen::Vector3d& pts)
const
50 return fastEnvelope::FastEnvelope::is_outside(pts);
59 : use_exact(exact) {};
61 double sampling_dist = 1e-3;
62 bool use_exact =
false;
64 const std::vector<Eigen::Vector3d>& m_ver,
65 const std::vector<Eigen::Vector3i>& m_faces,
68 const std::vector<Eigen::Vector3d>& m_ver,
69 const std::vector<Eigen::Vector2i>& m_edges,
72 const std::vector<Eigen::Vector2d>& m_ver,
73 const std::vector<Eigen::Vector2i>& m_edges,
75 bool is_outside(
const std::array<Eigen::Vector3d, 3>& tris)
const;
76 bool is_outside(
const std::array<Eigen::Vector3d, 2>& edge)
const;
77 bool is_outside(
const std::array<Eigen::Vector2d, 2>& edge)
const;
78 bool is_outside(
const Eigen::Vector3d& pts)
const;
79 bool is_outside(
const Eigen::Vector2d& pts)
const;
80 double nearest_point(
const Eigen::Vector3d& pts, Eigen::Vector3d& result)
const;
81 double nearest_point(
const Eigen::Vector2d& pts, Eigen::Vector2d& result)
const;
82 bool initialized() {
return m_bvh !=
nullptr; };
84 double squared_distance(
const Eigen::Vector3d& p)
const;
87 std::vector<int> geo_vertex_ind;
88 std::vector<int> geo_face_ind;
89 std::shared_ptr<SimpleBVH::BVH> m_bvh;
92 fastEnvelope::FastEnvelope exact_envelope;