private VIS.WorkSpace.Geometry GetDestinationGeometry( VLUnityCameraHelper.FlipCoordinateSystemHandedness fcsHandedness) { VLGeometry creator = this.destinationGeometry.GetComponent <VLGeometry>(); // check if object has a geometry component if (creator != null) { return(CreateVLGeometry(creator, fcsHandedness)); } else { // if target object has no geometry component -> use center point which is stored in // destinationPoints[0] VIS.WorkSpace.Transform trans = VLUnityCameraHelper.CreateLocalVLTransform( this.destinationGeometry, fcsHandedness); Vector3[] destination = GetDestinationVertices(); trans.t = new float[3] { destination[0].x, destination[0].y, destination[0].z }; return(new VIS.WorkSpace.Plane( 0, 0, 1, trans)); } }
private static VIS.WorkSpace.Geometry CreateVLGeometry(VLGeometry creator, VLUnityCameraHelper.FlipCoordinateSystemHandedness fcsHandedness) { return(creator.CreateVLGeometry(VLUnityCameraHelper.CreateLocalVLTransform( creator.gameObject, fcsHandedness))); }