]> OCCT Git - occt-copy.git/commit
Draft implementation of LOD API in OCCT:
authorvpa <vpa@opencascade.com>
Tue, 8 Dec 2015 06:11:46 +0000 (09:11 +0300)
committervpa <vpa@opencascade.com>
Fri, 8 Apr 2016 17:19:59 +0000 (20:19 +0300)
commita96ac42dfd869dbe4769dc8833a7c1e1b793bb9a
tree9ad585b8340b2049ed56def347c806e25dc2a0c7
parentc62927c662b684dc5b6c2bddd5332d93421bb61f
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]