@@ -127,8 +127,13 @@ def shape(self) -> TrimmedCurve:
127127 geometry = grpc_curve_to_curve (response )
128128
129129 response = self ._edges_stub .GetStartAndEndPoints (self ._grpc_id )
130- start = Point3D ([response .start .x , response .start .y , response .start .z ])
131- end = Point3D ([response .end .x , response .end .y , response .end .z ])
130+ start = Point3D (
131+ [response .start .x , response .start .y , response .start .z ],
132+ unit = DEFAULT_UNITS .SERVER_LENGTH ,
133+ )
134+ end = Point3D (
135+ [response .end .x , response .end .y , response .end .z ], unit = DEFAULT_UNITS .SERVER_LENGTH
136+ )
132137
133138 response = self ._edges_stub .GetLength (self ._grpc_id )
134139 length = Quantity (response .length , DEFAULT_UNITS .SERVER_LENGTH )
@@ -192,7 +197,10 @@ def start(self) -> Point3D:
192197 # Only for versions earlier than 24.2.0 (before the introduction of the shape property)
193198 self ._grpc_client .log .debug ("Requesting edge start point from server." )
194199 response = self ._edges_stub .GetStartAndEndPoints (self ._grpc_id )
195- return Point3D ([response .start .x , response .start .y , response .start .z ])
200+ return Point3D (
201+ [response .start .x , response .start .y , response .start .z ],
202+ unit = DEFAULT_UNITS .SERVER_LENGTH ,
203+ )
196204
197205 @property
198206 @protect_grpc
@@ -205,4 +213,6 @@ def end(self) -> Point3D:
205213 # Only for versions earlier than 24.2.0 (before the introduction of the shape property)
206214 self ._grpc_client .log .debug ("Requesting edge end point from server." )
207215 response = self ._edges_stub .GetStartAndEndPoints (self ._grpc_id )
208- return Point3D ([response .end .x , response .end .y , response .end .z ])
216+ return Point3D (
217+ [response .end .x , response .end .y , response .end .z ], unit = DEFAULT_UNITS .SERVER_LENGTH
218+ )
0 commit comments