/// <summary> /// Required parameters: /// (Location)center_location /// (Location)pointing_towards /// (UnitVector)orthogonal_direction /// (double)side_length /// </summary> /// <param name='shadowObject'> /// Shadow object containing parameters from summary. /// </param> protected void shadowFac_Loc_width_height(ShadowScientrace.ShadowObject3d shadowObject) { //User values(s) Scientrace.Location corner_location = shadowObject.getLocation("corner_location"); Scientrace.NonzeroVector width = shadowObject.getNzVector("width"); Scientrace.NonzeroVector height = shadowObject.getNzVector("height"); //construct! this.init_Loc_width_height(corner_location, width, height); }
/// <summary> /// Required parameters: /// (Location) corner_location, /// (NonzeroVector) length /// (NonzeroVector) width /// (NonzeroVector) height /// (boolean) perfect_front (default true) /// </summary> /// <param name='shadowObject'> /// Shadow object containing parameters from summary. /// </param> protected void shadowFac_Width_Height_And_Length(ShadowScientrace.ShadowObject3d shadowObject) { //User values(s) Scientrace.Location corner_location = shadowObject.getLocation("corner_location"); Scientrace.NonzeroVector length = shadowObject.getNzVector("length"); Scientrace.NonzeroVector width = shadowObject.getNzVector("width"); Scientrace.NonzeroVector height = shadowObject.getNzVector("height"); bool perfect_top = shadowObject.getBool("perfect_top") == true; //Derived value(s) //none //initialize! this.paramInit(corner_location, width, height, length); //add some additional parameters this.perfectTop = perfect_top; }