public void assignToModel(IRobotMaterialType materialType)
        {
            IRobotLabel       label    = RobotLabels.createLabel(IRobotLabelType.I_LT_MATERIAL, name);
            RobotMaterialData material = (RobotMaterialData)label.Data;

            material.Type     = materialType;
            material.E        = elasticity;
            material.NU       = poisson;
            material.RO       = specificWeight;
            material.Kirchoff = kirchoff;
        }
Exemplo n.º 2
0
        }//create

        public void update(int pos, double elasticity, double poisson, double weigth, IRobotMaterialType robotMaterialType)
        {
        }
Exemplo n.º 3
0
        //create a material instance and add to
        public void create(string name, double elasticity, double poisson, double weigth, IRobotMaterialType robotMaterialType)
        {
            material = new Material(name, elasticity, poisson, weigth, robotMaterialType);
            materials.Add(material);

            //Adding the material to the current project
            //Acessing RobotLabelServer
            IRobotLabel materialLabel = structure.getLabelServer().Create(IRobotLabelType.I_LT_MATERIAL, name);
            //Accessing data properties
            RobotMaterialData materialData = (RobotMaterialData)materialLabel.Data;

            materialData.Type     = robotMaterialType;
            materialData.E        = elasticity;
            materialData.NU       = poisson;
            materialData.RO       = weigth;
            materialData.Kirchoff = material.kirchoff;

            structure.getLabelServer().Store(materialLabel);
        }//create
 //Constructor
 public Material(string name, double elasticity, double poisson, double wheight, IRobotMaterialType materialType)
 {
     this.name           = name;
     this.elasticity     = elasticity;
     this.poisson        = poisson;
     this.specificWeight = wheight;
     calculateKirchoff();
 }
Exemplo n.º 5
0
 //Construtor
 public Material(string name, double elasticity, double poisson, double weigth, IRobotMaterialType robotMaterialType)
 {
     this.name               = name;
     this.elasticity         = elasticity;
     this.poisson            = poisson;
     this.specificWeigth     = weigth;
     this.kirchoff           = calculateKirchoff(elasticity, poisson);
     this.iRobotMaterialType = robotMaterialType;
 }