コード例 #1
0
        public override bool BeginCapture(ITransformable target, Ray3f worldRay, UIRayHit hit)
        {
            originalTargetS = target.GetLocalFrame(CoordSpace.SceneCoords);

            snapState = new SnapStateMachine <SnapResult>();

            return(true);
        }
コード例 #2
0
ファイル: DynamicSnapSolver.cs プロジェクト: tomleetv/gsCore
        public DynamicSnapSolver(SceneObject target)
        {
            snapFramesL = new List <Frame3f>();
            targetSO    = target;

            Frame3f targetSceneF = targetSO.GetLocalFrame(CoordSpace.SceneCoords);

            generate_points(targetSO, targetSceneF);

            snapIndicators = new SOIndicatorSet(targetSO);
            foreach (Frame3f f in snapFramesL)
            {
                snapIndicators.AddSphereL(f, SceneGraphConfig.DefaultPivotVisualDegrees * 0.75f, target.GetScene().PivotMaterial);
            }

            snapState = new SnapStateMachine <SnapResult>();
        }