mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Minor doc improvements and SQL/stream code cleanup
This commit is contained in:
@@ -62,9 +62,7 @@ class sqlite(file):
|
|||||||
self.ifc_class_references = {}
|
self.ifc_class_references = {}
|
||||||
self.ifc_class_inverses = {}
|
self.ifc_class_inverses = {}
|
||||||
|
|
||||||
for declaration in self.ifc_schema.declarations():
|
for declaration in self.ifc_schema.entities():
|
||||||
if not str(declaration).startswith("<entity"):
|
|
||||||
continue
|
|
||||||
# print('Dealing with declaration', declaration.name())
|
# print('Dealing with declaration', declaration.name())
|
||||||
|
|
||||||
self.ifc_class_subtypes[declaration.name()] = ifcopenshell.util.schema.get_subtypes(declaration)
|
self.ifc_class_subtypes[declaration.name()] = ifcopenshell.util.schema.get_subtypes(declaration)
|
||||||
|
|||||||
@@ -167,10 +167,7 @@ try:
|
|||||||
self.ifc_class_references = {}
|
self.ifc_class_references = {}
|
||||||
self.ifc_class_inverses = {}
|
self.ifc_class_inverses = {}
|
||||||
|
|
||||||
for declaration in self.ifc_schema.declarations():
|
for declaration in self.ifc_schema.entities():
|
||||||
if not str(declaration).startswith("<entity"):
|
|
||||||
continue
|
|
||||||
|
|
||||||
self.ifc_class_names[declaration.name().upper()] = declaration.name()
|
self.ifc_class_names[declaration.name().upper()] = declaration.name()
|
||||||
|
|
||||||
self.ifc_class_subtypes[declaration.name()] = ifcopenshell.util.schema.get_subtypes(declaration)
|
self.ifc_class_subtypes[declaration.name()] = ifcopenshell.util.schema.get_subtypes(declaration)
|
||||||
|
|||||||
@@ -54,13 +54,13 @@ class Patcher:
|
|||||||
specified, it is treated as the angle to rotate in plan view (i.e.
|
specified, it is treated as the angle to rotate in plan view (i.e.
|
||||||
around the Z axis). If all angle parameters are specified, then it
|
around the Z axis). If all angle parameters are specified, then it
|
||||||
is treated as the angle to rotate around the X axis. Angles are in
|
is treated as the angle to rotate around the X axis. Angles are in
|
||||||
decimal degrees.
|
decimal degrees and positive is anticlockwise.
|
||||||
:type ax: float,optional
|
:type ax: float,optional
|
||||||
:param ay: An optional angle to rotate by for 3D rotations along the Y
|
:param ay: An optional angle to rotate by for 3D rotations along the Y
|
||||||
axis. Angles are in decimal degrees.
|
axis. Angles are in decimal degrees and positive is anticlockwise.
|
||||||
:type ay: float,optional
|
:type ay: float,optional
|
||||||
:param az: An optional angle to rotate by for 3D rotations along the Z
|
:param az: An optional angle to rotate by for 3D rotations along the Z
|
||||||
axis. Angles are in decimal degrees.
|
axis. Angles are in decimal degrees and positive is anticlockwise.
|
||||||
:type az: float,optional
|
:type az: float,optional
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|||||||
Reference in New Issue
Block a user