public BSSegmentedTriShape(NiGeometry shape) { this.nameIdx = shape.GetNameIndex(); this.numExtraData = 0U; this.extraData = new List <int>(); this.controller = shape.GetController(); this.flags = shape.GetFlags(); this.flags2 = shape.GetFlags2(); this.translation = shape.GetTranslation(); this.rotation = shape.GetRotation(); this.scale = shape.GetScale(); this.collisionObject = shape.GetCollisionObject(); this.data = shape.GetData(); this.skinInstance = shape.GetSkinInstance(); this.numMaterials = shape.GetNumMaterials(); this.materialNames = shape.GetMaterialNames(); this.materialExtraData = shape.GetMaterialExtraData(); this.activeMaterial = shape.GetActiveMaterial(); this.dirtyFlag = shape.GetDirtyFlag(); this.bsProperties = new int[2]; for (int index = 0; index < 2; ++index) { this.bsProperties[index] = shape.GetBSProperty(index); } this.numSegments = 0; this.segments = new List <BSSegment>(); }
public BSSegmentedTriShape(NiGeometry shape) { this.nameIdx = shape.GetNameIndex(); this.numExtraData = 0U; this.extraData = new List<int>(); this.controller = shape.GetController(); this.flags = shape.GetFlags(); this.flags2 = shape.GetFlags2(); this.translation = shape.GetTranslation(); this.rotation = shape.GetRotation(); this.scale = shape.GetScale(); this.collisionObject = shape.GetCollisionObject(); this.data = shape.GetData(); this.skinInstance = shape.GetSkinInstance(); this.numMaterials = shape.GetNumMaterials(); this.materialNames = shape.GetMaterialNames(); this.materialExtraData = shape.GetMaterialExtraData(); this.activeMaterial = shape.GetActiveMaterial(); this.dirtyFlag = shape.GetDirtyFlag(); this.bsProperties = new int[2]; for (int index = 0; index < 2; ++index) this.bsProperties[index] = shape.GetBSProperty(index); this.numSegments = 0; this.segments = new List<BSSegment>(); }