# {py:mod}`simvx.core.resource` ```{py:module} simvx.core.resource ``` ```{autodoc2-docstring} simvx.core.resource :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`MeshURI ` - ```{autodoc2-docstring} simvx.core.resource.MeshURI :summary: ``` * - {py:obj}`ResourceCache ` - ```{autodoc2-docstring} simvx.core.resource.ResourceCache :summary: ``` ```` ### API `````{py:class} MeshURI :canonical: simvx.core.resource.MeshURI ```{autodoc2-docstring} simvx.core.resource.MeshURI ``` ````{py:attribute} CUBE :canonical: simvx.core.resource.MeshURI.CUBE :value: > 'mesh://cube' ```{autodoc2-docstring} simvx.core.resource.MeshURI.CUBE ``` ```` ````{py:attribute} SPHERE :canonical: simvx.core.resource.MeshURI.SPHERE :value: > 'mesh://sphere' ```{autodoc2-docstring} simvx.core.resource.MeshURI.SPHERE ``` ```` ````{py:attribute} CONE :canonical: simvx.core.resource.MeshURI.CONE :value: > 'mesh://cone' ```{autodoc2-docstring} simvx.core.resource.MeshURI.CONE ``` ```` ````{py:attribute} CYLINDER :canonical: simvx.core.resource.MeshURI.CYLINDER :value: > 'mesh://cylinder' ```{autodoc2-docstring} simvx.core.resource.MeshURI.CYLINDER ``` ```` ````{py:method} cube(size: float = 1.0) -> str :canonical: simvx.core.resource.MeshURI.cube :staticmethod: ```{autodoc2-docstring} simvx.core.resource.MeshURI.cube ``` ```` ````{py:method} sphere(radius: float = 1.0, rings: int = 16, segments: int = 16) -> str :canonical: simvx.core.resource.MeshURI.sphere :staticmethod: ```{autodoc2-docstring} simvx.core.resource.MeshURI.sphere ``` ```` ````{py:method} cone(radius: float = 0.5, height: float = 1.0, segments: int = 16) -> str :canonical: simvx.core.resource.MeshURI.cone :staticmethod: ```{autodoc2-docstring} simvx.core.resource.MeshURI.cone ``` ```` ````{py:method} cylinder(radius: float = 0.5, height: float = 1.0, segments: int = 16) -> str :canonical: simvx.core.resource.MeshURI.cylinder :staticmethod: ```{autodoc2-docstring} simvx.core.resource.MeshURI.cylinder ``` ```` ````{py:method} obj(path: str) -> str :canonical: simvx.core.resource.MeshURI.obj :staticmethod: ```{autodoc2-docstring} simvx.core.resource.MeshURI.obj ``` ```` ````` `````{py:class} ResourceCache() :canonical: simvx.core.resource.ResourceCache ```{autodoc2-docstring} simvx.core.resource.ResourceCache ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.core.resource.ResourceCache.__init__ ``` ````{py:method} get() -> simvx.core.resource.ResourceCache :canonical: simvx.core.resource.ResourceCache.get :classmethod: ```{autodoc2-docstring} simvx.core.resource.ResourceCache.get ``` ```` ````{py:method} resolve_mesh(uri: str) -> simvx.core.graphics.mesh.Mesh :canonical: simvx.core.resource.ResourceCache.resolve_mesh ```{autodoc2-docstring} simvx.core.resource.ResourceCache.resolve_mesh ``` ```` ````{py:method} resolve_audio(uri: str) -> simvx.core.audio.AudioStream :canonical: simvx.core.resource.ResourceCache.resolve_audio ```{autodoc2-docstring} simvx.core.resource.ResourceCache.resolve_audio ``` ```` ````{py:method} clear() :canonical: simvx.core.resource.ResourceCache.clear ```{autodoc2-docstring} simvx.core.resource.ResourceCache.clear ``` ```` ````{py:method} reset() :canonical: simvx.core.resource.ResourceCache.reset :classmethod: ```{autodoc2-docstring} simvx.core.resource.ResourceCache.reset ``` ```` `````