Skip to content

Commit a7948da

Browse files
committed
Correct center point of OneCoreDisk
1 parent 1455d1a commit a7948da

File tree

1 file changed

+4
-4
lines changed
  • src/classy_blocks/construct/flat/sketches

1 file changed

+4
-4
lines changed

src/classy_blocks/construct/flat/sketches/disk.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,11 @@ def __init__(self, center_point: PointType, radius_point: PointType, normal: Vec
215215

216216
super().__init__([*pattern.get_inner_points(angles, ratios), *pattern.get_outer_points(angles)], quad_map)
217217

218-
@property
219-
def center(self):
220-
return self.faces[0].center
218+
# correct origo_point as it is not the same as with FourCoreDisk-based sketches
219+
self.origo_point = Point(center_point)
221220

222221
@property
223-
def origo(self):
222+
def center(self):
224223
return self.faces[0].center
225224

226225
@property
@@ -371,6 +370,7 @@ def __init__(self, center_point: PointType, corner_point: PointType, radius: flo
371370
]
372371

373372
super().__init__([*square_points, *arc_points, *outer_points], quad_map)
373+
self.origo_point = Point(center_point)
374374

375375
@property
376376
def grid(self):

0 commit comments

Comments
 (0)