public virtual SceneObject BuildPivot(FScene scene, TypedAttribSet attributes) { PivotSO so = new PivotSO(); so.Create(scene.PivotSOMaterial, scene.FrameSOMaterial); RestorePivotSOType(scene, attributes, so); return(so); }
public virtual SceneObject BuildPivot(FScene scene, TypedAttribSet attributes) { PivotSO so = new PivotSO(); so.Create(scene.PivotSOMaterial, scene.FrameMaterial); safe_set_property_s(attributes, IOStrings.ASOName, (s) => { so.Name = s; }); RestoreTransform(so, attributes); RestoreMaterial(so, attributes); return(so); }
override public SceneObject Duplicate() { PivotSO copy = new PivotSO(); copy.parentScene = this.parentScene; copy.Create(this.GetAssignedSOMaterial(), this.frameMaterial, shapeGO.GetLayer()); copy.SetLocalFrame( this.GetLocalFrame(CoordSpace.ObjectCoords), CoordSpace.ObjectCoords); copy.MaintainConsistentViewSize = this.MaintainConsistentViewSize; return(copy); }
override public SceneObject Duplicate() { PivotSO copy = new PivotSO(); copy.parentScene = this.parentScene; copy.Create(this.GetAssignedSOMaterial(), (frameMesh != null) ? frameMesh.GetComponent <Renderer>().material : null, meshGO.layer); copy.SetLocalFrame( this.GetLocalFrame(CoordSpace.ObjectCoords), CoordSpace.ObjectCoords); return(copy); }