mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Update ignored settings structs in IfcPython.i #6976
This commit is contained in:
@@ -135,11 +135,6 @@ class BRepElement(Element):
|
|||||||
@property
|
@property
|
||||||
def volume(self): ...
|
def volume(self): ...
|
||||||
|
|
||||||
class CgalEmitOriginalEdges:
|
|
||||||
name: Any
|
|
||||||
description: Any
|
|
||||||
defaultvalue: Any
|
|
||||||
|
|
||||||
class ColladaSerializer(WriteOnlyGeometrySerializer):
|
class ColladaSerializer(WriteOnlyGeometrySerializer):
|
||||||
def finalize(self): ...
|
def finalize(self): ...
|
||||||
def isTesselated(self): ...
|
def isTesselated(self): ...
|
||||||
@@ -150,11 +145,6 @@ class ColladaSerializer(WriteOnlyGeometrySerializer):
|
|||||||
def write(self, *args): ...
|
def write(self, *args): ...
|
||||||
def writeHeader(self): ...
|
def writeHeader(self): ...
|
||||||
|
|
||||||
class ComputeCurvature:
|
|
||||||
name: Any
|
|
||||||
description: Any
|
|
||||||
defaultvalue: Any
|
|
||||||
|
|
||||||
class ConversionResult:
|
class ConversionResult:
|
||||||
def ItemId(self): ...
|
def ItemId(self): ...
|
||||||
def Placement(self): ...
|
def Placement(self): ...
|
||||||
@@ -273,16 +263,6 @@ class Element:
|
|||||||
class FileSchema(HeaderEntity):
|
class FileSchema(HeaderEntity):
|
||||||
schema_identifiers: Any
|
schema_identifiers: Any
|
||||||
|
|
||||||
class FunctionStepParam:
|
|
||||||
name: Any
|
|
||||||
description: Any
|
|
||||||
defaultvalue: Any
|
|
||||||
|
|
||||||
class FunctionStepType:
|
|
||||||
name: Any
|
|
||||||
description: Any
|
|
||||||
defaultvalue: Any
|
|
||||||
|
|
||||||
class GeometrySerializer:
|
class GeometrySerializer:
|
||||||
READ_BREP: Any
|
READ_BREP: Any
|
||||||
READ_TRIANGULATION: Any
|
READ_TRIANGULATION: Any
|
||||||
@@ -566,11 +546,6 @@ class TriangulationElement(Element):
|
|||||||
def geometry(self) -> Triangulation: ...
|
def geometry(self) -> Triangulation: ...
|
||||||
def geometry_pointer(self): ...
|
def geometry_pointer(self): ...
|
||||||
|
|
||||||
class TriangulationType:
|
|
||||||
name: Any
|
|
||||||
description: Any
|
|
||||||
defaultvalue: Any
|
|
||||||
|
|
||||||
class TtlWktSerializer(WriteOnlyGeometrySerializer):
|
class TtlWktSerializer(WriteOnlyGeometrySerializer):
|
||||||
def finalize(self): ...
|
def finalize(self): ...
|
||||||
def isTesselated(self): ...
|
def isTesselated(self): ...
|
||||||
|
|||||||
@@ -16,7 +16,9 @@ from typing import get_args
|
|||||||
class TestGeomSettings:
|
class TestGeomSettings:
|
||||||
def test_settings(self):
|
def test_settings(self):
|
||||||
settings = ifcopenshell.geom.settings()
|
settings = ifcopenshell.geom.settings()
|
||||||
assert set(get_args(ifcopenshell.geom.SETTING)) == set(settings.setting_names())
|
assert set(get_args(ifcopenshell.geom.SETTING)) == set(
|
||||||
|
settings.setting_names()
|
||||||
|
), "Also need to update IfcPython.i, if new settings were added/removed."
|
||||||
|
|
||||||
assert "use-python-opencascade" in settings.setting_names()
|
assert "use-python-opencascade" in settings.setting_names()
|
||||||
assert settings.get(settings.USE_PYTHON_OPENCASCADE) is False
|
assert settings.get(settings.USE_PYTHON_OPENCASCADE) is False
|
||||||
@@ -38,7 +40,9 @@ class TestGeomSettings:
|
|||||||
|
|
||||||
def test_serializer_settings(self):
|
def test_serializer_settings(self):
|
||||||
settings = ifcopenshell.geom.serializer_settings()
|
settings = ifcopenshell.geom.serializer_settings()
|
||||||
assert set(get_args(ifcopenshell.geom.SERIALIZER_SETTING)) == set(settings.setting_names())
|
assert set(get_args(ifcopenshell.geom.SERIALIZER_SETTING)) == set(
|
||||||
|
settings.setting_names()
|
||||||
|
), "Also need to update IfcPython.i, if new settings were added/removed."
|
||||||
|
|
||||||
# Only for settings.
|
# Only for settings.
|
||||||
assert "use-python-opencascade" not in settings.setting_names()
|
assert "use-python-opencascade" not in settings.setting_names()
|
||||||
|
|||||||
+15
-2
@@ -94,6 +94,7 @@
|
|||||||
%ignore loop_to_function_item_upgrade_impl;
|
%ignore loop_to_function_item_upgrade_impl;
|
||||||
|
|
||||||
// settings, can this done more generally?
|
// settings, can this done more generally?
|
||||||
|
// GeometrySerializer.h
|
||||||
%ignore UseElementNames;
|
%ignore UseElementNames;
|
||||||
%ignore UseElementGuids;
|
%ignore UseElementGuids;
|
||||||
%ignore UseElementStepIds;
|
%ignore UseElementStepIds;
|
||||||
@@ -103,6 +104,7 @@
|
|||||||
%ignore FloatingPointDigits;
|
%ignore FloatingPointDigits;
|
||||||
%ignore BaseUri;
|
%ignore BaseUri;
|
||||||
%ignore WktUseSection;
|
%ignore WktUseSection;
|
||||||
|
// ConversionSettings.h
|
||||||
%ignore MesherLinearDeflection;
|
%ignore MesherLinearDeflection;
|
||||||
%ignore MesherAngularDeflection;
|
%ignore MesherAngularDeflection;
|
||||||
%ignore ReorientShells;
|
%ignore ReorientShells;
|
||||||
@@ -137,14 +139,25 @@
|
|||||||
%ignore SiteLocalPlacement;
|
%ignore SiteLocalPlacement;
|
||||||
%ignore BuildingLocalPlacement;
|
%ignore BuildingLocalPlacement;
|
||||||
%ignore NoParallelMapping;
|
%ignore NoParallelMapping;
|
||||||
|
%ignore PermissiveShapeReuse;
|
||||||
%ignore ForceSpaceTransparency;
|
%ignore ForceSpaceTransparency;
|
||||||
%ignore CircleSegments;
|
%ignore CircleSegments;
|
||||||
|
%ignore CgalSmoothAngleDegrees;
|
||||||
%ignore KeepBoundingBoxes;
|
%ignore KeepBoundingBoxes;
|
||||||
%ignore SurfaceColour;
|
%ignore SurfaceColour;
|
||||||
%ignore PiecewiseStepType;
|
%ignore ComputeCurvature;
|
||||||
%ignore PiecewiseStepParam;
|
%ignore FunctionStepType;
|
||||||
|
%ignore FunctionStepParam;
|
||||||
%ignore ModelOffset;
|
%ignore ModelOffset;
|
||||||
%ignore ModelRotation;
|
%ignore ModelRotation;
|
||||||
|
%ignore TriangulationType;
|
||||||
|
%ignore CgalEmitOriginalEdges;
|
||||||
|
%ignore OcctNoCleanTriangulation;
|
||||||
|
%ignore CacheShapes;
|
||||||
|
%ignore DeferProcessingFirstElement;
|
||||||
|
%ignore MaxOffset;
|
||||||
|
%ignore MaxOffsetDeviation;
|
||||||
|
%ignore ApplyOffset;
|
||||||
|
|
||||||
// Triangulated representation helper struct
|
// Triangulated representation helper struct
|
||||||
%ignore EdgeKey;
|
%ignore EdgeKey;
|
||||||
|
|||||||
Reference in New Issue
Block a user