]> OCCT Git - occt-copy.git/commit
Draft implementation of LOD API in OCCT: CR26812_1
authorvpa <vpa@opencascade.com>
Tue, 8 Dec 2015 06:11:46 +0000 (09:11 +0300)
committervpa <vpa@opencascade.com>
Tue, 8 Dec 2015 07:18:27 +0000 (10:18 +0300)
commitaf989e9d1d8c5eb7b51db53dc2e887b4ff3fb5a2
tree8945e8ac9ac71f5885ebc17939ef8dba15019867
parent92efcf78a683e75ce77d916d07831255342780a8
Draft implementation of LOD API in OCCT:
- implemented interfaces for LOD at OpenGl, Graphic3d and MeshVS levels;
- added LOD managers at Graphic3d and OpenGl levels;
- simple mechanism of LOD switching is implemented in LOD manager;
- distance to COG metric is temporarily used;
- the metric could be redefined using custom LOD selectors;
- LODs are added to MeshVS_Mesh in Compute method and are listed as its data sources;
- added commands meshgenlod and meshlod to generate LODs for mesh and its topological representation
  and bind them to its OpenGl structures.
32 files changed:
src/Graphic3d/FILES
src/Graphic3d/Graphic3d_CStructure.hxx
src/Graphic3d/Graphic3d_LOD.cxx [new file with mode: 0644]
src/Graphic3d/Graphic3d_LOD.hxx [new file with mode: 0644]
src/Graphic3d/Graphic3d_LODDistanceSelector.cxx [new file with mode: 0644]
src/Graphic3d/Graphic3d_LODDistanceSelector.hxx [new file with mode: 0644]
src/Graphic3d/Graphic3d_LODManager.cxx [new file with mode: 0644]
src/Graphic3d/Graphic3d_LODManager.hxx [new file with mode: 0644]
src/Graphic3d/Graphic3d_LODSelector.hxx [new file with mode: 0644]
src/Graphic3d/Graphic3d_Structure.cxx
src/Graphic3d/Graphic3d_Structure.hxx
src/MeshVS/FILES
src/MeshVS/MeshVS_DataSource.hxx
src/MeshVS/MeshVS_LODBuilder.cxx [new file with mode: 0644]
src/MeshVS/MeshVS_LODBuilder.hxx [new file with mode: 0644]
src/MeshVS/MeshVS_LODDataSource.cxx [new file with mode: 0644]
src/MeshVS/MeshVS_LODDataSource.hxx [new file with mode: 0644]
src/MeshVS/MeshVS_Mesh.cxx
src/MeshVS/MeshVS_Mesh.hxx
src/MeshVS/MeshVS_MeshPrsBuilder.cxx
src/MeshVS/MeshVS_MeshPrsBuilder.hxx
src/OpenGl/FILES
src/OpenGl/OpenGl_LOD.cxx [new file with mode: 0644]
src/OpenGl/OpenGl_LOD.hxx [new file with mode: 0644]
src/OpenGl/OpenGl_LODManager.cxx [new file with mode: 0644]
src/OpenGl/OpenGl_LODManager.hxx [new file with mode: 0644]
src/OpenGl/OpenGl_Structure.cxx
src/OpenGl/OpenGl_Structure.hxx
src/Prs3d/Prs3d_Root.hxx
src/TKMeshVS/EXTERNLIB
src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx
tests/bugs/vis/bug26812 [new file with mode: 0644]