From: Rajaneesh <raj...@gm...> - 2018-07-13 06:19:57
|
Hello, Thanks.. It got resolved when I called the following method. def clear(self, deepClean=False): self.omplSetup.clear() self.mainWidget.glViewer.clear(deepClean) Regards Rajaneesh On Thu, Jul 12, 2018 at 4:14 PM, Rajaneesh <raj...@gm...> wrote: > Hello, > > I have the following code snippet in python for loading the environment > file and rendering it in screen. The window opens up but the > environment.dae is not rendered. Have I missed on any initialization? > > > Regards > Rajaneesh > > #In MainWindow > omplSetup = eval('oa.%s()' % 'GSE3RigidBodyPlanning') > environmentFile = join(ompl_resources_dir, 'scenario1_env.dae') > omplSetup.setEnvironmentMesh(environmentFile) > glViewer.setEnvironment(omplSetup.renderEnvironment()) > > ... > ... > ... > ... > > #in PaintGL > if self.environment: GL.glCallList(self.environment) > |