diff --git a/pyproject.toml b/pyproject.toml index e643b89386..0ae2cfb219 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ classifiers = [ ] dependencies = [ - "ansys-api-geometry==0.2.3", + "ansys-api-geometry==0.2.4", "beartype>=0.11.0", "google-api-python-client>=1.7.11", "googleapis-common-protos>=1.52.0", diff --git a/src/ansys/geometry/core/designer/body.py b/src/ansys/geometry/core/designer/body.py index fc65f44d65..0ea89a2430 100644 --- a/src/ansys/geometry/core/designer/body.py +++ b/src/ansys/geometry/core/designer/body.py @@ -226,7 +226,7 @@ def add_midsurface_thickness(self, thickness: Quantity) -> None: if self.is_surface: self._commands_stub.AssignMidSurfaceThickness( AssignMidSurfaceThicknessRequest( - bodiesOrFaces=[self.id], thickness=thickness.m_as(DEFAULT_UNITS.SERVER_LENGTH) + bodies_or_faces=[self.id], thickness=thickness.m_as(DEFAULT_UNITS.SERVER_LENGTH) ) ) self._surface_thickness = thickness @@ -251,7 +251,9 @@ def add_midsurface_offset(self, offset: MidSurfaceOffsetType) -> None: """ if self.is_surface: self._commands_stub.AssignMidSurfaceOffsetType( - AssignMidSurfaceOffsetTypeRequest(bodiesOrFaces=[self.id], offsetType=offset.value) + AssignMidSurfaceOffsetTypeRequest( + bodies_or_faces=[self.id], offset_type=offset.value + ) ) self._surface_offset = offset else: @@ -357,7 +359,7 @@ def project_curves( body=self._id, curves=curves, direction=unit_vector_to_grpc_direction(direction), - closestFace=closest_face, + closest_face=closest_face, ) ) diff --git a/src/ansys/geometry/core/designer/component.py b/src/ansys/geometry/core/designer/component.py index 07b679d2f5..ac7afaacf8 100644 --- a/src/ansys/geometry/core/designer/component.py +++ b/src/ansys/geometry/core/designer/component.py @@ -182,7 +182,7 @@ def set_shared_topology(self, share_type: SharedTopologyType) -> None: f"Setting shared topology type {share_type.value} on {self.id}." ) self._component_stub.SetSharedTopology( - SetSharedTopologyRequest(id=self.id, shareType=share_type.value) + SetSharedTopologyRequest(id=self.id, share_type=share_type.value) ) # Store the SharedTopologyType set on the client diff --git a/src/ansys/geometry/core/designer/design.py b/src/ansys/geometry/core/designer/design.py index 7cf50a40e1..ca6f3fab64 100644 --- a/src/ansys/geometry/core/designer/design.py +++ b/src/ansys/geometry/core/designer/design.py @@ -125,10 +125,10 @@ def add_material(self, material: Material) -> None: AddToDocumentRequest( material=GRPCMaterial( name=material.name, - materialProperties=[ + material_properties=[ GRPCMaterialProperty( id=property.type.value, - displayName=property.name, + display_name=property.name, value=property.quantity.m, units=format(property.quantity.units), ) @@ -397,7 +397,7 @@ def add_midsurface_thickness(self, thickness: Quantity, bodies: List[Body]) -> N # Assign mid-surface thickness self._commands_stub.AssignMidSurfaceThickness( AssignMidSurfaceThicknessRequest( - bodiesOrFaces=ids, thickness=thickness.m_as(DEFAULT_UNITS.SERVER_LENGTH) + bodies_or_faces=ids, thickness=thickness.m_as(DEFAULT_UNITS.SERVER_LENGTH) ) ) @@ -435,7 +435,7 @@ def add_midsurface_offset(self, offset_type: MidSurfaceOffsetType, bodies: List[ # Assign mid-surface offset type self._commands_stub.AssignMidSurfaceOffsetType( - AssignMidSurfaceOffsetTypeRequest(bodiesOrFaces=ids, offsetType=offset_type.value) + AssignMidSurfaceOffsetTypeRequest(bodies_or_faces=ids, offset_type=offset_type.value) ) # Once the assignment has gone fine, store the values diff --git a/src/ansys/geometry/core/designer/face.py b/src/ansys/geometry/core/designer/face.py index cfd17df70d..ec3e1f2b45 100644 --- a/src/ansys/geometry/core/designer/face.py +++ b/src/ansys/geometry/core/designer/face.py @@ -180,17 +180,17 @@ def loops(self) -> List[FaceLoop]: length = Quantity(grpc_loop.length, DEFAULT_UNITS.SERVER_LENGTH) min = Point3D( [ - grpc_loop.boundingBox.min.x, - grpc_loop.boundingBox.min.y, - grpc_loop.boundingBox.min.z, + grpc_loop.bounding_box.min.x, + grpc_loop.bounding_box.min.y, + grpc_loop.bounding_box.min.z, ], DEFAULT_UNITS.SERVER_LENGTH, ) max = Point3D( [ - grpc_loop.boundingBox.max.x, - grpc_loop.boundingBox.max.y, - grpc_loop.boundingBox.max.z, + grpc_loop.bounding_box.max.x, + grpc_loop.bounding_box.max.y, + grpc_loop.bounding_box.max.z, ], DEFAULT_UNITS.SERVER_LENGTH, )