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,
71 bool is_outside(
const std::array<Eigen::Vector3d, 3>& tris)
const;
72 bool is_outside(
const std::array<Eigen::Vector3d, 2>& edge)
const;
73 bool is_outside(
const Eigen::Vector3d& pts)
const;
74 double nearest_point(
const Eigen::Vector3d& pts, Eigen::Vector3d& result)
const;
75 bool initialized() {
return m_bvh !=
nullptr; };
77 double squared_distance(
const Eigen::Vector3d& p)
const;
80 std::vector<int> geo_vertex_ind;
81 std::vector<int> geo_face_ind;
82 std::shared_ptr<SimpleBVH::BVH> m_bvh;
85 fastEnvelope::FastEnvelope exact_envelope;