Skip to content

Commit f095dfc

Browse files
committed
Replace Graphic3d_Vec3 with gp_Vec3f (same template)
1 parent 9c15d11 commit f095dfc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/core_display_pbr.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
Graphic3d_PBRMaterial,
2929
Graphic3d_MaterialAspect,
3030
Graphic3d_BSDF,
31-
Graphic3d_Vec3,
3231
)
3332
from OCC.Core.V3d import (
3433
V3d_SpotLight,
@@ -38,7 +37,7 @@
3837
)
3938
from OCC.Core.Quantity import Quantity_Color, Quantity_NOC_WHITE, Quantity_NOC_CORAL2
4039
from OCC.Core.BRepAlgoAPI import BRepAlgoAPI_Cut
41-
from OCC.Core.gp import gp_Vec, gp_Pnt, gp_Dir
40+
from OCC.Core.gp import gp_Vec, gp_Pnt, gp_Dir, gp_Vec3f
4241

4342
from OCC.Extend.ShapeFactory import translate_shp
4443

@@ -81,8 +80,9 @@
8180
glass_pbr_aspect = Graphic3d_MaterialAspect(Graphic3d_NOM_PLASTIC)
8281
glass_pbr_aspect.SetPBRMaterial(pbr_mat_2)
8382
# the BSDF glass
84-
weights = Graphic3d_Vec3(0.5, 6.0, 1.0)
85-
absorption_color = Graphic3d_Vec3(0.8, 0.8, 0.8)
83+
84+
weights = gp_Vec3f(0.5, 6.0, 1.0)
85+
absorption_color = gp_Vec3f(0.8, 0.8, 0.8)
8686
absorption_coef = 0.6
8787
refraction_index = 2.2
8888
glass_pbr_aspect.SetBSDF(

0 commit comments

Comments
 (0)