extract explicit mesh with topology information from implicit surfaces with boolean operations, and do surface/volume integrating on them.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
1.0 KiB

#pragma once
#include <blobtree.hpp>
#include "settings.h"
// each active subface should have one structure as below
struct parametric_plane {
stl_vector_mp<Eigen::Vector2d> chain_vertices{};
flat_index_group chains{};
stl_vector_mp<uint32_t> singularity_vertices{}; // i.e. intersection of chains
stl_vector_mp<uint32_t> polar_vertices{}; // i.e. min/max x/y around 2 connecting vertices
stl_vector_mp<uint32_t> parallel_start_vertices{}; // i.e. edge {v, v + 1} is parallel to x/y axis
};
ISNP_API void build_implicit_network_by_blobtree(const s_settings& settings,
const baked_blobtree_t& tree,
stl_vector_mp<Eigen::Vector3d>& output_vertices,
stl_vector_mp<uint32_t>& output_polygon_faces,
stl_vector_mp<uint32_t>& output_vertex_counts_of_face);