public Mesh_Manager(string fileName, double Translation_offset, double Scaling_offset, double Rotation_offset) { this._Mesh = new Mesh(@fileName); this.transformationInfo = new Transformation_Info(Translation_offset, Scaling_offset, Rotation_offset); this.coloringMode = Coloring_Mode.Default; this.mappingMode = Mapping_Mode.Continuous; }
public Mesh_Manager(Mesh new_mesh) { this._Mesh = new_mesh; this.transformationInfo = new Transformation_Info(2, 0.3, 0.5); this.coloringMode = Coloring_Mode.Default; this.mappingMode = Mapping_Mode.Continuous; }
public Mesh_Manager(string fileName) { this._Mesh = new Mesh(@fileName); this.transformationInfo = new Transformation_Info(2, 0.3, 0.5); this.coloringMode = Coloring_Mode.Default; this.mappingMode = Mapping_Mode.Continuous; //save min & max values for each type Mesh_Manager.dataTypeRange = new Dictionary <uint, KeyValuePair <double, double> >(); foreach (string str in _Mesh.VarToIndex.Keys) { uint index = (uint)_Mesh.VarToIndex[str]; double min = 0, max = 0; _Mesh.GetMinMaxValues(index, out min, out max); Mesh_Manager.dataTypeRange.Add(index, new KeyValuePair <double, double>(min, max)); } }