Updated Freestyle API modules according to the new hierarchical package structure.
Additional bug fixes were also done along with the code updates: * Fix for the use of old Interface1D.pointsBegin() and .pointsEnd() method names in the definition of pyDensityAnisotropyF1D and pyViewMapGradientNormF1D. * Fix for wrong data types (int instead of bool) for: - pyChainSilhouetteGenericIterator constructor and its .orientation property in modules/freestyle/chainingiterators.py. - SpatialNoiseShader constructor in styles/external_contour_sketchy.py. - ChainSilhouetteIterator constructor in styles/multiple_parameterization.py.
This commit is contained in:
@@ -21,10 +21,20 @@
|
||||
# Date : 04/08/2005
|
||||
# Purpose : Draws strokes that starts and stops at Tvertices (visible or not)
|
||||
|
||||
from freestyle import ChainSilhouetteIterator, ConstantThicknessShader, IncreasingColorShader, \
|
||||
Nature, Operators, QuantitativeInvisibilityUP1D, TextureAssignerShader, TrueUP1D
|
||||
from PredicatesU0D import pyVertexNatureUP0D
|
||||
from logical_operators import NotUP1D
|
||||
from freestyle import Operators
|
||||
from freestyle.types import Nature
|
||||
from freestyle.chainingiterators import ChainSilhouetteIterator
|
||||
from freestyle.predicates import (
|
||||
NotUP1D,
|
||||
QuantitativeInvisibilityUP1D,
|
||||
TrueUP1D,
|
||||
pyVertexNatureUP0D,
|
||||
)
|
||||
from freestyle.shaders import (
|
||||
ConstantThicknessShader,
|
||||
IncreasingColorShader,
|
||||
TextureAssignerShader,
|
||||
)
|
||||
|
||||
Operators.select(QuantitativeInvisibilityUP1D(0))
|
||||
Operators.bidirectional_chain(ChainSilhouetteIterator(), NotUP1D(QuantitativeInvisibilityUP1D(0)))
|
||||
|
Reference in New Issue
Block a user