Skip to content

Commit

Permalink
shape_core.py -> testing faster return value
Browse files Browse the repository at this point in the history
  • Loading branch information
jdegenstein authored Jan 16, 2025
1 parent 4766ffc commit 55ad15a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/build123d/topology/shape_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2836,8 +2836,7 @@ def _topods_entities(shape: TopoDS_Shape, topo_type: Shapes) -> list[TopoDS_Shap
"""Return the TopoDS_Shapes of topo_type from this TopoDS_Shape"""
shape_set = TopTools_IndexedMapOfShape()
TopExp.MapShapes_s(shape, Shape.inverse_shape_LUT[topo_type], shape_set)

return shape_set
return [shape_set.FindKey(i) for i in range(1, shape_set.Size() + 1)]


def _topods_face_normal_at(face: TopoDS_Face, surface_point: gp_Pnt) -> Vector:
Expand Down

0 comments on commit 55ad15a

Please sign in to comment.