Skip to content
Snippets Groups Projects
Commit 946c044e authored by Boman Romain's avatar Boman Romain
Browse files

adapt view to lastest groups

parent f56750e9
No related branches found
No related tags found
No related merge requests found
......@@ -305,27 +305,34 @@ if __name__=="__main__":
# load meshes
surface = SurfMesh.load('Dolicorhynchops_coarse.off', vertices=False)
muscle = SurfMesh.load('muscle.off')
Lmuscle = SurfMesh.load('Lmuscle.off')
Rmuscle = SurfMesh.load('Rmuscle.off')
LmuscleF = SurfMesh.load('LmuscleF.off')
RmuscleF = SurfMesh.load('RmuscleF.off')
ltmj = SurfMesh.load('LTMJ.off')
rtmj = SurfMesh.load('RTMJ.off')
tooth = SurfMesh.load('tooth.off')
teeth = SurfMesh.load('teeth.off')
view = View()
view.addActors(surface.actor)
view.addActors(muscle.actor)
view.addActors(Lmuscle.actor)
view.addActors(Rmuscle.actor)
view.addActors(LmuscleF.actor)
view.addActors(RmuscleF.actor)
view.addActors(rtmj.actor)
view.addActors(ltmj.actor)
view.addActors(tooth.actor)
view.addActors(teeth.actor)
surface.actor.GetProperty().SetPointSize(0.0)
surface.actor.GetProperty().RenderPointsAsSpheresOff ()
surface.actor.GetProperty().SetRepresentationToSurface()
muscle.mapper.SetResolveCoincidentTopologyToPolygonOffset()
muscle.actor.GetProperty().SetColor( colors.GetColor3d('red') )
muscle.actor.GetProperty().EdgeVisibilityOn()
muscle.actor.GetProperty().SetPointSize(8.0)
for muscle in Rmuscle, Lmuscle:
muscle.mapper.SetResolveCoincidentTopologyToPolygonOffset()
muscle.actor.GetProperty().SetColor( colors.GetColor3d('red') )
# muscle.actor.GetProperty().EdgeVisibilityOn()
muscle.actor.GetProperty().SetPointSize(1.0)
ltmj.actor.GetProperty().SetPointSize(10.0)
ltmj.actor.GetProperty().SetColor( colors.GetColor3d('blue') )
......@@ -333,8 +340,12 @@ if __name__=="__main__":
rtmj.actor.GetProperty().SetPointSize(10.0)
rtmj.actor.GetProperty().SetColor( colors.GetColor3d('blue') )
tooth.actor.GetProperty().SetPointSize(15.0)
tooth.actor.GetProperty().SetColor( colors.GetColor3d('yellow') )
teeth.actor.GetProperty().SetPointSize(15.0)
teeth.actor.GetProperty().SetColor( colors.GetColor3d('yellow') )
for muscleF in RmuscleF, LmuscleF:
muscleF.actor.GetProperty().SetPointSize(15.0)
muscleF.actor.GetProperty().SetColor( colors.GetColor3d('green') )
view.interact()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment