Expose geometry types in snake case

Generated with the assistance of an AI coding tool.
This commit is contained in:
Thomas Krijnen
2026-08-09 04:44:18 +02:00
parent fbfa51c451
commit be3c2ee770
49 changed files with 300 additions and 287 deletions
@@ -105,7 +105,7 @@ class spf_header:
@property
def file_schema(self) -> entity_instance: ...
class BRep(Representation):
class native(representation):
def __init__(self, settings, entity, id, shapes): ...
def as_compound(self, force_meters=False): ...
def begin(self): ...
@@ -118,30 +118,30 @@ class BRep(Representation):
def shapes(self): ...
def size(self): ...
class BRepElement(Element):
class native_element(element):
def __init__(self, id, parent_id, name, type, guid, context, trsf, geometry, product): ...
def calculate_projected_surface_area(self, along_x, along_y, along_z): ...
@property
def geometry(self) -> BRep: ...
def geometry(self) -> native: ...
@property
def surface_area(self): ...
@property
def volume(self): ...
class ConversionResult:
class conversion_result:
def ItemId(self): ...
def Placement(self): ...
def Shape(self): ...
def Style(self): ...
def StylePtr(self): ...
def __init__(self, *args): ...
def append(self, trsf): ...
def apply_transform(self, unit_scale=1.0): ...
def hasStyle(self): ...
def placement(self): ...
def prepend(self, trsf): ...
def setStyle(self, newStyle): ...
def shape(self) -> conversion_result_shape: ...
def style(self): ...
def style_ptr(self): ...
class ConversionResultShape:
class conversion_result_shape:
def serialize(self, place, arg3): ...
def triangulate(self, *args): ...
def __init__(self, *args, **kwargs): ...
@@ -193,7 +193,7 @@ class DoubleArray3:
def size(self): ...
def swap(self, v): ...
class Element:
class element:
def __init__(self, settings, id, parent_id, name, type, guid, context, trsf, product): ...
# TODO: Remove from the wrapper?
def SetParents(self, newparents): ...
@@ -233,7 +233,7 @@ class Element:
@property
def product(self) -> entity_instance: ...
@property
def transformation(self) -> Transformation: ...
def transformation(self) -> transformation: ...
@property
def transformation_buffer(self) -> bytes: ...
@property
@@ -252,7 +252,7 @@ class Element:
"""
...
class GeometrySerializer:
class geometry_serializer:
READ_BREP: Any
READ_TRIANGULATION: Any
def __init__(self, *args, **kwargs): ...
@@ -264,7 +264,7 @@ class GeometrySerializer:
def ready(self): ...
def setFile(self, file: file) -> None: ...
def setUnitNameAndMagnitude(self, name, magnitude): ...
def settings(self, *args) -> "Settings": ...
def settings(self, *args) -> "settings": ...
def write(self, *args): ...
def writeHeader(self): ...
@@ -284,7 +284,7 @@ class instance_streamer:
def status(self): ...
def yield_header_instances(self, enabled): ...
class Iterator:
class iterator:
def __init__(self, *args): ...
initialization_outcome_: Any
processed_: Any
@@ -294,7 +294,7 @@ class Iterator:
def create(self): ...
def file(self): ...
def filters(self, *args): ...
def get(self) -> Element:
def get(self) -> element:
"""Get last processed element."""
...
@@ -344,7 +344,7 @@ class OpaqueCoordinate_4:
def size(self): ...
def to_double(self): ...
class OpaqueNumber:
class opaque_number:
def abs(self): ...
def add(self, other): ...
def divide(self, other): ...
@@ -358,7 +358,7 @@ class OpaqueNumber:
def to_double(self): ...
def to_string(self): ...
class Representation:
class representation:
def __init__(self, settings, entity, id): ...
def entity(self): ...
@property
@@ -369,7 +369,7 @@ class Representation:
- 2468 - IfcRelVoidsElement
"""
def settings(self) -> "Settings": ...
def settings(self) -> "settings": ...
class RocksDBPrefixIterator:
def __init__(self, storage, prefix): ...
@@ -386,7 +386,7 @@ class RocksDbSerializer:
def setFile(self, arg2) -> None: ...
def writeHeader(self) -> None: ...
class Serialization(Representation):
class serialization(representation):
def __init__(self, brep): ...
@property
def brep_data(self): ...
@@ -395,12 +395,12 @@ class Serialization(Representation):
@property
def surface_styles(self): ...
class SerializedElement(Element):
class serialized_element(element):
def __init__(self, shape_model): ...
@property
def geometry(self) -> Serialization: ...
def geometry(self) -> serialization: ...
class Settings:
class settings:
def get_(self, name): ...
def get_type(self, name): ...
def set_(self, *args): ...
@@ -418,13 +418,13 @@ class SwigPyIterator:
def previous(self): ...
def value(self): ...
class Transformation:
class transformation:
def __init__(self, settings, matrix): ...
def data(self): ...
@property
def matrix(self): ...
class Triangulation(Representation):
class triangulation(representation):
def __init__(self, *args): ...
def addEdge(self, item_id, style, i0, i1): ...
def addFace(self, *args): ...
@@ -479,12 +479,12 @@ class Triangulation(Representation):
@property
def verts_buffer(self) -> bytes: ...
class TriangulationElement(Element):
class triangulation_element(element):
def __init__(self, *args): ...
@property
def geometry(self) -> Triangulation: ...
def geometry(self) -> triangulation: ...
class WriteOnlyGeometrySerializer(GeometrySerializer):
class write_only_geometry_serializer(geometry_serializer):
def __init__(self, *args, **kwargs): ...
def read(self, *args): ...
@@ -1568,7 +1568,7 @@ class torus(surface):
class tree:
def __init__(self, *args): ...
def add_element(self, element: Element | None) -> None: ...
def add_element(self, element: element | None) -> None: ...
def add_file(self, *args) -> None: ...
def clash_clearance_many(
self,
@@ -1651,7 +1651,7 @@ def set_feature(x: Literal["use_attribute_value_derived"], v: bool) -> None:
def create_box(*args): ...
def create_epeck(*args): ...
def create_geometry_serializer(*args) -> GeometrySerializer: ...
def create_geometry_serializer(*args) -> geometry_serializer: ...
def create_shape(*args): ...
def flatten(deep): ...
def get_info_cpp(v: entity_instance, recursive: bool, include_identifier: bool) -> dict[str, Any]: ...