File: simplify.rst

package info (click to toggle)
blender-doc 4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 253,604 kB
  • sloc: python: 13,030; javascript: 322; makefile: 113; sh: 107
file content (107 lines) | stat: -rw-r--r-- 2,941 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.. index:: Grease Pencil Modifiers; Simplify Modifier
.. _bpy.types.GreasePencilSimplifyModifier:

*****************
Simplify Modifier
*****************

The *Simplify* modifier allows you to reduce the amount of points in the strokes.
The goal of this modifier is reduce points while maintaining the lines shape.

Apply the modifier can help to obtain a better performance (more FPS) while animating.


Options
=======

.. figure:: /images/grease-pencil_modifiers_generate_simplify_panel.png
   :align: center

   The Simplify modifier.

Mode
   Determines how to reduce points in the strokes.

   :Fixed:
      Deletes alternated points in the strokes, except the start and end points.

      Iterations
         Number of times to repeat the procedure.

   :Adaptive:
      Uses the RDP algorithm (Ramer-Douglas-Peucker algorithm) for points deletion.
      The algorithm try to obtain a similar line shape with fewer points.

      Factor
         Controls the amount of recursively simplifications applied by the algorithm.

   :Sample:
      Recreates the stroke geometry with a predefined length between points.

      Length
         The distance between points on the recreated stroke.
         Smaller values will require more points to recreate the stroke,
         while larger values will result in fewer points needed to recreate the curve.

      Sharp Threshold
         Preserve corners that have sharper angle than this threshold.

   :Merge:
      Simplifies the strokes by merging points that are closer than a specified distance to each other.

      Distance
         Sets the distance threshold for merging points.


Influence
---------

See :ref:`grease-pencil-modifier-influence-filters`.


Example
=======

.. list-table:: Fixed Mode sample.

   * - .. figure:: /images/grease-pencil_modifiers_generate_simplify_fixed-iterations-0.png
          :width: 130px

          Original Model.

     - .. figure:: /images/grease-pencil_modifiers_generate_simplify_fixed-iterations-1.png
          :width: 130px

          Iteration: 1.

     - .. figure:: /images/grease-pencil_modifiers_generate_simplify_fixed-iterations-2.png
          :width: 130px

          Iteration: 2.

     - .. figure:: /images/grease-pencil_modifiers_generate_simplify_fixed-iterations-3.png
          :width: 130px

          Iteration: 3.

.. list-table:: Adaptive Mode sample.

   * - .. figure:: /images/grease-pencil_modifiers_generate_simplify_adaptive-factor-0.png
          :width: 130px

          Original Model.

     - .. figure:: /images/grease-pencil_modifiers_generate_simplify_adaptive-factor-01.png
          :width: 130px

          Factor: 0.1.

     - .. figure:: /images/grease-pencil_modifiers_generate_simplify_adaptive-factor-02.png
          :width: 130px

          Factor: 0.5.

     - .. figure:: /images/grease-pencil_modifiers_generate_simplify_adaptive-factor-05.png
          :width: 130px

          Factor: 1.