mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Removed unneeded application reference in construction of meshreaders
This commit is contained in:
parent
2b83af2497
commit
b4f59a7822
10 changed files with 23 additions and 19 deletions
|
@ -26,8 +26,8 @@ except ImportError:
|
|||
DEFAULT_SUBDIV = 16 # Default subdivision factor for spheres, cones, and cylinders
|
||||
EPSILON = 0.000001
|
||||
|
||||
class Shape:
|
||||
|
||||
class Shape:
|
||||
# Expects verts in MeshBuilder-ready format, as a n by 3 mdarray
|
||||
# with vertices stored in rows
|
||||
def __init__(self, verts, faces, index_base, name):
|
||||
|
@ -37,9 +37,10 @@ class Shape:
|
|||
self.index_base = index_base
|
||||
self.name = name
|
||||
|
||||
|
||||
class X3DReader(MeshReader):
|
||||
def __init__(self, application):
|
||||
super().__init__(application)
|
||||
def __init__(self) -> None:
|
||||
super().__init__()
|
||||
self._supported_extensions = [".x3d"]
|
||||
self._namespaces = {}
|
||||
|
||||
|
|
|
@ -15,5 +15,6 @@ def getMetaData():
|
|||
]
|
||||
}
|
||||
|
||||
|
||||
def register(app):
|
||||
return { "mesh_reader": X3DReader.X3DReader(app) }
|
||||
return {"mesh_reader": X3DReader.X3DReader()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue