# {py:mod}`simvx.core.mesh_lod` ```{py:module} simvx.core.mesh_lod ``` ```{autodoc2-docstring} simvx.core.mesh_lod :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`LODLevel ` - ```{autodoc2-docstring} simvx.core.mesh_lod.LODLevel :summary: ``` * - {py:obj}`MeshLOD ` - ```{autodoc2-docstring} simvx.core.mesh_lod.MeshLOD :summary: ``` ```` ### Functions ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`generate_lods ` - ```{autodoc2-docstring} simvx.core.mesh_lod.generate_lods :summary: ``` ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`__all__ ` - ```{autodoc2-docstring} simvx.core.mesh_lod.__all__ :summary: ``` * - {py:obj}`log ` - ```{autodoc2-docstring} simvx.core.mesh_lod.log :summary: ``` ```` ### API ````{py:data} __all__ :canonical: simvx.core.mesh_lod.__all__ :value: > ['LODLevel', 'MeshLOD', 'generate_lods'] ```{autodoc2-docstring} simvx.core.mesh_lod.__all__ ``` ```` ````{py:data} log :canonical: simvx.core.mesh_lod.log :value: > 'getLogger(...)' ```{autodoc2-docstring} simvx.core.mesh_lod.log ``` ```` `````{py:class} LODLevel :canonical: simvx.core.mesh_lod.LODLevel ```{autodoc2-docstring} simvx.core.mesh_lod.LODLevel ``` ````{py:attribute} mesh :canonical: simvx.core.mesh_lod.LODLevel.mesh :type: simvx.core.graphics.mesh.Mesh :value: > None ```{autodoc2-docstring} simvx.core.mesh_lod.LODLevel.mesh ``` ```` ````{py:attribute} ratio :canonical: simvx.core.mesh_lod.LODLevel.ratio :type: float :value: > 1.0 ```{autodoc2-docstring} simvx.core.mesh_lod.LODLevel.ratio ``` ```` ````{py:attribute} max_distance :canonical: simvx.core.mesh_lod.LODLevel.max_distance :type: float :value: > 'float(...)' ```{autodoc2-docstring} simvx.core.mesh_lod.LODLevel.max_distance ``` ```` ````` `````{py:class} MeshLOD(levels: list[simvx.core.mesh_lod.LODLevel] | None = None) :canonical: simvx.core.mesh_lod.MeshLOD ```{autodoc2-docstring} simvx.core.mesh_lod.MeshLOD ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.core.mesh_lod.MeshLOD.__init__ ``` ````{py:attribute} __slots__ :canonical: simvx.core.mesh_lod.MeshLOD.__slots__ :value: > ('_levels',) ```{autodoc2-docstring} simvx.core.mesh_lod.MeshLOD.__slots__ ``` ```` ````{py:property} levels :canonical: simvx.core.mesh_lod.MeshLOD.levels :type: list[simvx.core.mesh_lod.LODLevel] ```{autodoc2-docstring} simvx.core.mesh_lod.MeshLOD.levels ``` ```` ````{py:property} level_count :canonical: simvx.core.mesh_lod.MeshLOD.level_count :type: int ```{autodoc2-docstring} simvx.core.mesh_lod.MeshLOD.level_count ``` ```` ````{py:method} add_level(level: simvx.core.mesh_lod.LODLevel) -> None :canonical: simvx.core.mesh_lod.MeshLOD.add_level ```{autodoc2-docstring} simvx.core.mesh_lod.MeshLOD.add_level ``` ```` ````{py:method} select_lod(distance: float, bias: float = 0.0) -> simvx.core.mesh_lod.LODLevel :canonical: simvx.core.mesh_lod.MeshLOD.select_lod ```{autodoc2-docstring} simvx.core.mesh_lod.MeshLOD.select_lod ``` ```` ````` ````{py:function} generate_lods(mesh: simvx.core.graphics.mesh.Mesh, levels: int = 3, ratios: list[float] | None = None, distances: list[float] | None = None) -> simvx.core.mesh_lod.MeshLOD :canonical: simvx.core.mesh_lod.generate_lods ```{autodoc2-docstring} simvx.core.mesh_lod.generate_lods ``` ````