Blender V2.61 - r43446
|
Go to the source code of this file.
Functions | |
int | LOD_LoadMesh (LOD_Decimation_InfoPtr info) |
int | LOD_PreprocessMesh (LOD_Decimation_InfoPtr info) |
int | LOD_CollapseEdge (LOD_Decimation_InfoPtr info) |
int | LOD_FreeDecimationData (LOD_Decimation_InfoPtr info) |
Definition in file LOD_decimation.cpp.
int LOD_CollapseEdge | ( | LOD_Decimation_InfoPtr | info | ) |
Once both the stages above have been completed this function collapses a single edge in the mesh. The LOD_Decimation_Info structure is updated to represent the new mesh.
Definition at line 130 of file LOD_decimation.cpp.
References LOD_DecimationClass::Decimator(), LOD_DecimationClass::e_preprocessed, if(), LOD_Decimation_Info::intern, LOD_DecimationClass::m_e_decimation_state, NULL, and LOD_QSDecimator::Step().
Referenced by MyGlutKeyHandler::HandleKeyboard().
int LOD_FreeDecimationData | ( | LOD_Decimation_InfoPtr | ) |
Free any memory the decimation process used during the decimation process
Definition at line 145 of file LOD_decimation.cpp.
References LOD_Decimation_Info::intern, and NULL.
int LOD_LoadMesh | ( | LOD_Decimation_InfoPtr | info | ) |
Create internal mesh representation from LOD_Decimation_Info structure.
Definition at line 40 of file LOD_decimation.cpp.
References LOD_ManMesh2::AddTriangle(), LOD_DecimationClass::e_loaded, LOD_Decimation_Info::face_num, LOD_Decimation_Info::intern, LOD_DecimationClass::New(), NULL, MEM_SmartPtr< T >::Release(), LOD_ManMesh2::SetVertices(), LOD_Decimation_Info::triangle_index_buffer, LOD_Decimation_Info::vertex_buffer, LOD_Decimation_Info::vertex_normal_buffer, and LOD_Decimation_Info::vertex_num.
Referenced by main().
int LOD_PreprocessMesh | ( | LOD_Decimation_InfoPtr | info | ) |
Allocate and Compute internal data strucures required for decimation.
Definition at line 108 of file LOD_decimation.cpp.
References LOD_QSDecimator::Arm(), LOD_ExternNormalEditor::BuildNormals(), LOD_DecimationClass::Decimator(), LOD_DecimationClass::e_loaded, LOD_DecimationClass::e_preprocessed, LOD_DecimationClass::FaceEditor(), if(), LOD_Decimation_Info::intern, LOD_DecimationClass::m_e_decimation_state, and NULL.
Referenced by main().