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.

34 lines
1.9 KiB

#pragma once
#include <implicit_arrangement.hpp>
#include "execution.h"
7 months ago
#include "background_mesh_manager.hpp"
#include "patch_integrator.hpp"
7 months ago
struct ImplicitSurfaceNetworkProcessor {
void update_background_mesh(const Eigen::Ref<const raw_point_t>& aabb_min,
const Eigen::Ref<const raw_point_t>& aabb_max) noexcept;
void clear() noexcept;
solve_result_t run(const virtual_node_t& tree_node) noexcept;
7 months ago
/* adaptors */
BackgroundMeshManager background_mesh_manager{};
PatchIntegrator patch_integrator{};
/* output fields */
7 months ago
// topology results
stl_vector_mp<raw_point_t> iso_vertices{}; ///< Vertices at the surface network mesh
stl_vector_mp<polygon_face_t> iso_faces{}; ///< Polygonal faces at the surface network mesh
stl_vector_mp<stl_vector_mp<uint32_t>> patches{}; ///< A connected component of faces bounded by non-manifold edges
stl_vector_mp<uint32_t> patch_function_labels{}; ///< index of the zero-valued function that creates the patch
stl_vector_mp<iso_edge_t> iso_edges{}; ///< Edges at the surface network mesh
stl_vector_mp<stl_vector_mp<uint32_t>> chains{}; ///< Chains of non-manifold edges
stl_vector_mp<stl_vector_mp<uint32_t>> non_manifold_edges_of_vert{}; ///< Indices of non-manifold vertices
stl_vector_mp<stl_vector_mp<uint32_t>>
shells{}; ///< An array of shells. Each shell is a connected component consist of patches. Even patch index, 2*i,
///< indicates patch i is consistently oriented with the shell. Odd patch index, 2*i+1, indicates patch i has
///< opposite orientation with respect to the shell.
stl_vector_mp<stl_vector_mp<uint32_t>>
arrangement_cells{}; ///< A 3D region partitioned by the surface network; encoded by a vector of shell indices
};