Beispiel #1
0
 def EnableTextureEnv(self, name_of_texture=Graphic3d_NOT_ENV_CLOUDS):
     """ enable environment mapping. Possible modes are
     Graphic3d_NOT_ENV_CLOUDS
     Graphic3d_NOT_ENV_CV
     Graphic3d_NOT_ENV_MEDIT
     Graphic3d_NOT_ENV_PEARL
     Graphic3d_NOT_ENV_SKY1
     Graphic3d_NOT_ENV_SKY2
     Graphic3d_NOT_ENV_LINES
     Graphic3d_NOT_ENV_ROAD
     Graphic3d_NOT_ENV_UNKNOWN
     """
     texture_env = Graphic3d_TextureEnv(name_of_texture)
     self.View.SetTextureEnv(texture_env)
     self.View.Redraw()
Beispiel #2
0
 def EnableTextureEnv(self, name_of_texture=Graphic3d_NOT_ENV_CLOUDS):
     """ enable environment mapping. Possible modes are
     Graphic3d_NOT_ENV_CLOUDS
     Graphic3d_NOT_ENV_CV
     Graphic3d_NOT_ENV_MEDIT
     Graphic3d_NOT_ENV_PEARL
     Graphic3d_NOT_ENV_SKY1
     Graphic3d_NOT_ENV_SKY2
     Graphic3d_NOT_ENV_LINES
     Graphic3d_NOT_ENV_ROAD
     Graphic3d_NOT_ENV_UNKNOWN
     """
     texture_env = Graphic3d_TextureEnv(name_of_texture)
     self.View.SetTextureEnv(texture_env.GetHandle())
     self.View.SetSurfaceDetail(V3d_TEX_ENVIRONMENT)
     self.View.Redraw()