private void ApplyRandomizationsForPlacementGuide()
        {
            PointAndClickObjectPlacementSettings.Get().PlacementGuideRotationRandomizationSettings.CustomAxisRandomizationSettings.Axis = ObjectSnapping.Get().ObjectSnapSurfacePlane.normal;

            ObjectRotationRandomization.Randomize(ObjectPlacementGuide.SceneObject, PointAndClickObjectPlacementSettings.Get().PlacementGuideRotationRandomizationSettings);
            ObjectScaleRandomization.Randomize(ObjectPlacementGuide.SceneObject, PointAndClickObjectPlacementSettings.Get().PlacementGuideScaleRandomizationSettings);
        }
Beispiel #2
0
 private void ApplyRotationAndScaleRandimizationsForPlacementGuideIfNecessary()
 {
     DecorPaintObjectPlacementSettings.Get().SingleDecorPaintModeSettings.PlacementGuideRotationRandomizationSettings.CustomAxisRandomizationSettings.Axis = StrokeSurfacePlane.normal;
     if (!MustAlignGuideToStroke())
     {
         ObjectRotationRandomization.Randomize(ObjectPlacementGuide.SceneObject, DecorPaintObjectPlacementSettings.Get().SingleDecorPaintModeSettings.PlacementGuideRotationRandomizationSettings);
     }
     ObjectScaleRandomization.Randomize(ObjectPlacementGuide.SceneObject, DecorPaintObjectPlacementSettings.Get().SingleDecorPaintModeSettings.PlacementGuideScaleRandomizationSettings);
 }