Skip to content

Commit d87e700

Browse files
committed
Replaced AIS_RadiusDimension with PrsDim_RadiusDimension
1 parent deda9a4 commit d87e700

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/core_dimensions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
##along with pythonOCC. If not, see <http://www.gnu.org/licenses/>.
1919

2020
from OCC.Core.gp import gp_Dir, gp_Ax2, gp_Circ, gp_Pnt
21-
from OCC.Core.AIS import AIS_Shape, AIS_RadiusDimension
21+
from OCC.Core.AIS import AIS_Shape
22+
from OCC.Core.PrsDim import PrsDim_RadiusDimension
2223
from OCC.Core.Quantity import Quantity_Color, Quantity_NOC_BLACK
2324
from OCC.Core.Prs3d import Prs3d_DimensionAspect
2425
from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_MakeEdge
@@ -31,7 +32,7 @@
3132
ais_shp = AIS_Shape(ec)
3233
display.Context.Display(ais_shp, True)
3334

34-
rd = AIS_RadiusDimension(ec)
35+
rd = PrsDim_RadiusDimension(ec)
3536
the_aspect = Prs3d_DimensionAspect()
3637
the_aspect.SetCommonColor(Quantity_Color(Quantity_NOC_BLACK))
3738
rd.SetDimensionAspect(the_aspect)

0 commit comments

Comments
 (0)