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

add cylinder test for testing bone loads

parent 285e2966
No related branches found
No related tags found
No related merge requests found
# loadings
SetFactory("OpenCASCADE");
R=0.5;
Ly=2.;
Cylinder(1) = {0, 0, 0, 0, Ly, 0, R, 2*Pi};
Field[1] = MathEval;
Field[1].F = "0.1";
Background Field = 1;
File added
File added
NOFF
1 0 0
-2.0 1.0 -1.0
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from loadbone import *
if __name__=="__main__":
# load meshes
surface = SurfMesh.load('loadings/cylinder.ply', vertices=False)
muscle = SurfMesh.load('loadings/muscle.ply')
muscleF = SurfMesh.load('loadings/muscleF.off')
view = View()
view.addActors(surface.actor)
view.addActors(muscle.actor)
view.addActors(muscleF.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(1.0)
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