Microflow 3D
v1.0
|
#include <GeometryBuildFromSTL.h>
Public Member Functions | |
GeometryBuildFromSTL ()=default | |
~GeometryBuildFromSTL ()=default | |
void | ReadGrid (bool verbose=false) |
Reads grid from .stl file. More... | |
void | AutomaticBoundaryFind () |
Boundary nodes automatic finding. More... | |
void | BoundaryAddFromThreadFile () |
Adds boundary from thread.cfg file. More... | |
void | FluidAddFromThreadFile () |
Adds fluid from thread.cfg file. More... | |
void | SolidAddFromThreadFile () |
Adds solid from thread.cfg file. More... | |
void | WriteGeometryGridToVtiFile () |
Writes geometry Int32 geometry grid to .vti file. More... | |
void | WriteGeometryGridToVDBFile () |
Writes geometry Int32 geometry grid to .vti file. More... | |
void | Clean () |
Delete some unnecessary objects. More... | |
Static Public Member Functions | |
static std::shared_ptr< MF::GB::GeometryBuildFromSTL > | New (const std::shared_ptr< MF::Database::ConfigData > &ConfigData_Ptr, const std::shared_ptr< MF::GU::LatticeParametersD3Q19 > &LatticeParameters_Ptr) |
Data Fields | |
openvdb::FloatGrid::Ptr | m_STLGeometryGrid_Ptr |
Shared pointer to the VDB geometry grid of float value - a volumetric mesh created from the .stl file. More... | |
openvdb::Int64Grid::Ptr | m_VDBInt64GeometryGrid_Ptr |
Shared pointer to the VDB geometry grid of Int64 value. More... | |
openvdb::Int32Grid::Ptr | m_VDBPropagationGrid_Ptr |
Shared pointer to the VDB propagation grid of int value. More... | |
std::shared_ptr< MF::Database::GridVDB< openvdb::Int64Grid > > | m_MFGrid_GeometryGrid_Ptr |
Shared pointer to the MFGrid geometry grid of Int64 value. More... | |
Definition at line 41 of file GeometryBuildFromSTL.h.
|
default |
|
default |
void MF::GB::GeometryBuildFromSTL::AutomaticBoundaryFind | ( | ) |
Boundary nodes automatic finding.
Definition at line 35 of file GeometryBuildFromSTL.cpp.
References m_VDBInt64GeometryGrid_Ptr, m_VDBPropagationGrid_Ptr, and MF::GB::AutoSettingNode::New().
Referenced by New().
void MF::GB::GeometryBuildFromSTL::BoundaryAddFromThreadFile | ( | ) |
Adds boundary from thread.cfg file.
Definition at line 47 of file GeometryBuildFromSTL.cpp.
References m_VDBInt64GeometryGrid_Ptr, and MF::GB::BoundaryFromThread::VDBBoundaryAdd().
Referenced by New().
void MF::GB::GeometryBuildFromSTL::Clean | ( | ) |
Delete some unnecessary objects.
Definition at line 79 of file GeometryBuildFromSTL.cpp.
References m_MFGrid_GeometryGrid_Ptr, m_STLGeometryGrid_Ptr, m_VDBInt64GeometryGrid_Ptr, m_VDBPropagationGrid_Ptr, MF::GU::PropagationD3Q19::New(), MF::GB::StlMesher::New(), MF::Database::GridVDB< T_VDBGridType >::New(), MF::GB::NodeID::Node, MF::GB::NodeID::node_id, and MF::GB::NodeID::NodeID.
Referenced by New().
void MF::GB::GeometryBuildFromSTL::FluidAddFromThreadFile | ( | ) |
Adds fluid from thread.cfg file.
Definition at line 53 of file GeometryBuildFromSTL.cpp.
References m_VDBInt64GeometryGrid_Ptr, and MF::GB::FluidFromThread::VDBFluidAdd().
Referenced by New().
|
inlinestatic |
Definition at line 47 of file GeometryBuildFromSTL.h.
References AutomaticBoundaryFind(), BoundaryAddFromThreadFile(), Clean(), FluidAddFromThreadFile(), ReadGrid(), SolidAddFromThreadFile(), WriteGeometryGridToVDBFile(), and WriteGeometryGridToVtiFile().
Referenced by main().
void MF::GB::GeometryBuildFromSTL::ReadGrid | ( | bool | verbose = false | ) |
Reads grid from .stl file.
Referenced by New().
void MF::GB::GeometryBuildFromSTL::SolidAddFromThreadFile | ( | ) |
Adds solid from thread.cfg file.
Definition at line 58 of file GeometryBuildFromSTL.cpp.
References m_VDBInt64GeometryGrid_Ptr, and MF::GB::SolidFromThread::VDBSolidAdd().
Referenced by New().
void MF::GB::GeometryBuildFromSTL::WriteGeometryGridToVDBFile | ( | ) |
Writes geometry Int32 geometry grid to .vti file.
Definition at line 70 of file GeometryBuildFromSTL.cpp.
References m_MFGrid_GeometryGrid_Ptr.
Referenced by New().
void MF::GB::GeometryBuildFromSTL::WriteGeometryGridToVtiFile | ( | ) |
Writes geometry Int32 geometry grid to .vti file.
Definition at line 64 of file GeometryBuildFromSTL.cpp.
References m_MFGrid_GeometryGrid_Ptr.
Referenced by New().
std::shared_ptr<MF::Database::GridVDB<openvdb::Int64Grid> > MF::GB::GeometryBuildFromSTL::m_MFGrid_GeometryGrid_Ptr |
Shared pointer to the MFGrid geometry grid of Int64 value.
Definition at line 67 of file GeometryBuildFromSTL.h.
Referenced by Clean(), WriteGeometryGridToVDBFile(), and WriteGeometryGridToVtiFile().
openvdb::FloatGrid::Ptr MF::GB::GeometryBuildFromSTL::m_STLGeometryGrid_Ptr |
Shared pointer to the VDB geometry grid of float value - a volumetric mesh created from the .stl file.
Definition at line 64 of file GeometryBuildFromSTL.h.
Referenced by Clean().
openvdb::Int64Grid::Ptr MF::GB::GeometryBuildFromSTL::m_VDBInt64GeometryGrid_Ptr |
Shared pointer to the VDB geometry grid of Int64 value.
Definition at line 65 of file GeometryBuildFromSTL.h.
Referenced by AutomaticBoundaryFind(), BoundaryAddFromThreadFile(), Clean(), FluidAddFromThreadFile(), and SolidAddFromThreadFile().
openvdb::Int32Grid::Ptr MF::GB::GeometryBuildFromSTL::m_VDBPropagationGrid_Ptr |
Shared pointer to the VDB propagation grid of int value.
Definition at line 66 of file GeometryBuildFromSTL.h.
Referenced by AutomaticBoundaryFind(), and Clean().