user: Show practical ways to work with Freestyle.Types in a Blender add-on or script – include code.

assistant: isfied, false otherwise. Return type : bool name ¶ The name of the unary 1D predicate. Type : str class freestyle.types. ViewEdge ¶ Class hierarchy: Interface1D > ViewEdge Class defining a ViewEdge. A ViewEdge in an edge of the image graph. it connects two ViewVertex objects. It is made by connecting a set of FEdges. __init__ ( ) ¶ __init__ ( brother ) Builds a ViewEdge using the default constructor or the copy constructor. Parameters : brother ( ViewEdge ) – A ViewEdge object. update_fedges ( ) ¶ Sets Viewedge to this for all embedded fedges. chaining_time_stamp ¶ The time stamp of this ViewEdge. Type : int first_fedge ¶ The first FEdge that constitutes this ViewEdge. Type : FEdge first_viewvertex ¶ The first ViewVertex. Type : ViewVertex id ¶ The Id of this ViewEdge. Type : Id is_closed ¶ True if this ViewEdge forms a closed loop. Type : bool last_fedge ¶ The last FEdge that constitutes this ViewEdge. Type : FEdge last_viewvertex ¶ The second ViewVertex. Type : ViewVertex nature ¶ The nature of this ViewEdge. Type : Nature occludee ¶ The shape that is occluded by the ViewShape to which this ViewEdge belongs to. If no object is occluded, this property is set to None. Type : ViewShape qi ¶ The quantitative invisibility. Type : int viewshape ¶ The ViewShape to which this ViewEdge belongs to. Type : ViewShape class freestyle.types. ViewEdgeIterator ¶ Class hierarchy: Iterator > ViewEdgeIterator Base class for iterators over ViewEdges of the ViewMap Graph. Basically the increment() operator of this class should be able to take the decision of “where” (on which ViewEdge) to go when pointing on a given ViewEdge. __init__ ( begin = None , orientation = True ) ¶ __init__ ( brother ) Builds a ViewEdgeIterator from a starting ViewEdge and its orientation or the copy constructor. Parameters : begin ( ViewEdge | None) – The ViewEdge from where to start the iteration. orientation ( bool ) – If true, we’ll look for the next ViewEdge among the ViewEdges that surround the ending ViewVertex of begin. If false, we’ll search over the ViewEdges surrounding the ending ViewVertex of begin. brother ( ViewEdgeIterator ) – A ViewEdgeIterator object. change_orientation ( ) ¶ Changes the current orientation. begin ¶ The first ViewEdge used for the iteration. Type : ViewEdge current_edge ¶ The ViewEdge object currently pointed by this iterator. Type : ViewEdge object ¶ The ViewEdge object currently pointed by this iterator. Type : ViewEdge orientation ¶ The orientation of the pointed ViewEdge in the iteration. If true, the iterator looks for the next ViewEdge among those ViewEdges that surround the ending ViewVertex of the “begin” ViewEdge. If false, the iterator searches over the ViewEdges surrounding the ending ViewVertex of the “begin” ViewEdge. Type : bool class freestyle.types. ViewMap ¶ Class defining the ViewMap. __init__ ( ) ¶ Default constructor. get_closest_fedge ( x , y ) ¶ Gets the FEdge nearest to the 2D point specified as arguments. Parameters : x ( float ) – X coordinate of a 2D point. y ( float ) – Y coordinate of a 2D point. Returns : The FEdge nearest to the specified 2D point. Return type : FEdge get_closest_viewedge ( x , y ) ¶ Gets the ViewEdge nearest to the 2D point specified as arguments. Parameters : x ( float ) – X coordinate of a 2D point. y ( float ) – Y coordinate of a 2D point. Returns : The ViewEdge nearest to the specified 2D point. Return type : ViewEdge scene_bbox ¶ The 3D bounding box of the scene. Type : BBox class freestyle.types. ViewShape ¶ Class gathering the elements of the ViewMap (i.e., ViewVertex and ViewEdge ) that are issued from the same input shape. __init__ ( ) ¶ __init__ ( brother ) __init__ ( sshape ) Builds a ViewShape using the default constructor, copy constructor, or from a SShape . Parameters : brother ( ViewShape ) – A ViewShape object. sshape ( SShape ) – An SShape object. add_edge ( edge ) ¶ Adds a ViewEdge to the list of ViewEdge objects. Parameters : edge ( ViewEdge ) – A ViewEdge object. add_vertex ( vertex ) ¶ Adds a ViewVertex to the list of the ViewVertex objects. Parameters : vertex ( ViewVertex ) – A ViewVertex object. edges ¶ The list of ViewEdge objects contained in this ViewShape. Type : List of ViewEdge id ¶ The Id of this ViewShape. Type : Id library_path ¶ The library path of the ViewShape. Type : str, or None if the ViewShape is not part of a library. name ¶ The name of the ViewShape. Type : str sshape ¶ The SShape on top of which this ViewShape is built. Type : SShape vertices ¶ The list of ViewVertex objects contained in this ViewShape. Type : List of ViewVertex class freestyle.types. ViewVertex ¶ Class hierarchy: Interface0D > ViewVertex Class to define a view vertex. A view vertex is a feature vertex corresponding to a point of the image graph, where the characteristics of an edge (e.g., nature and visibility) might change. A ViewVertex can be of two kinds: A TVertex when it corresponds to the intersection between two ViewEdges or a NonTVertex when it corresponds to a vertex of the initial input mesh (it is the case for vertices such as corners for example). Thus, this class can be specialized into two classes, the TVertex class and the NonTVertex class. edges_begin ( ) ¶ Returns an iterator over the ViewEdges that goes to or comes from this ViewVertex pointing to the first ViewEdge of the list. The orientedViewEdgeIterator allows to iterate in CCW order over these ViewEdges and to get the orientation for each ViewEdge (incoming/outgoing). Returns : An orientedViewEdgeIterator pointing to the first ViewEdge. Return type : orientedViewEdgeIterator edges_end ( ) ¶ Returns an orientedViewEdgeIterator over the ViewEdges around this ViewVertex, pointing after the last ViewEdge. Returns : An orientedViewEdgeIterator pointing after the last ViewEdge. Return type : orientedViewEdgeIterator edges_iterator ( edge ) ¶ Returns an orientedViewEdgeIterator pointing to the ViewEdge given as argument. Parameters : edge ( ViewEdge ) – A ViewEdge object. Returns : An orientedViewEdgeIterator pointing to the given ViewEdge. Return type : orientedViewEdgeIterator nature ¶ The nature of this ViewVertex. Type : Nature class freestyle.types. orientedViewEdgeIterator ¶ Class hierarchy: Iterator > orientedViewEdgeIterator Class representing an iterator over oriented ViewEdges around a ViewVertex . This iterator allows a CCW iteration (in the image plane). An instance of an orientedViewEdgeIterator can only be obtained from a ViewVertex by calling edges_begin() or edges_end(). __init__ ( ) ¶ __init__ ( iBrother ) Creates an orientedViewEdgeIterator using either the default constructor or the copy constructor. Parameters : iBrother ( orientedViewEdgeIterator ) – An orientedViewEdgeIterator object. object ¶ The oriented ViewEdge (i.e., a tuple of the pointed ViewEdge and a boolean value) currently pointed to by this iterator. If the boolean value is true, the ViewEdge is incoming. Type : tuple[ ViewEdge , bool] Next Freestyle Predicates (freestyle.predicates) Previous Freestyle Module (freestyle) Copyright &#169; Blender Authors Made with Furo Report issue on this page On this page Freestyle Types (freestyle.types) freestyle.types.AdjacencyIterator freestyle.types.AdjacencyIterator.__init__() freestyle.types.AdjacencyIterator.is_incoming freestyle.types.AdjacencyIterator.object freestyle.types.BBox freestyle.types.BBox.__init__() freestyle.types.BinaryPredicate0D freestyle.types.BinaryPredicate0D.__init__() freestyle.types.BinaryPredicate0D.__call__() freestyle.types.BinaryPredicate0D.name freestyle.types.BinaryPredicate1D freestyle.types.BinaryPredicate1D.__init__() freestyle.types.BinaryPredicate1D.__call__() freestyle.types.BinaryPredicate1D.name freestyle.types.Chain freestyle.types.Chain.__init__() freestyle.types.Chain.push_viewedge_back() freestyle.types.Chain.push_viewedge_front() freestyle.types.ChainingIterator freestyle.types.ChainingIterator.__init__() freestyle.types.ChainingIterator.init() freestyle.types.ChainingIterator.traverse() freestyle.types.ChainingIterator.is_incrementing freestyle.types.ChainingIterator.next_vertex freestyle.types.ChainingIterator.object freestyle.types.Curve freestyle.types.Curve.__init__() freestyle.types.Curve.push_vertex_back() freestyle.types.Curve.push_vertex_front() freestyle.types.Curve.is_empty freestyle.types.Curve.segments_size freestyle.types.CurvePoint freestyle.types.CurvePoint.__init__() freestyle.types.CurvePoint.fedge freestyle.types.CurvePoint.first_svertex freestyle.types.CurvePoint.second_svertex freestyle.types.CurvePoint.t2d freestyle.types.CurvePointIterator freestyle.types.CurvePointIterator.__init__() freestyle.types.CurvePointIterator.object freestyle.types.CurvePointIterator.t freestyle.types.CurvePointIterator.u freestyle.types.FEdge freestyle.types.FEdge.FEdge() freestyle.types.FEdge.first_svertex freestyle.types.FEdge.id freestyle.types.FEdge.is_smooth freestyle.types.FEdge.nature freestyle.types.FEdge.next_fedge freestyle.types.FEdge.previous_fedge freestyle.types.FEdge.second_svertex freestyle.types.FEdge.viewedge freestyle.types.FEdgeSharp freestyle.types.FEdgeSharp.__init__() freestyle.types.FEdgeSharp.face_mark_left freestyle.types.FEdgeSharp.face_mark_right freestyle.types.FEdgeSharp.material_index_left freestyle.types.FEdgeSharp.material_index_right freestyle.types.FEdgeSharp.material_left freestyle.types.FEdgeSharp.material_right freestyle.types.FEdgeSharp.normal_left freestyle.types.FEdgeSharp.normal_right freestyle.types.FEdgeSmooth freestyle.types.FEdgeSmooth.__init__() freestyle.types.FEdgeSmooth.face_mark freestyle.types.FEdgeSmooth.material freestyle.types.FEdgeSmooth.material_index freestyle.types.FEdgeSmooth.normal freestyle.types.Id freestyle.types.Id.__init__() freestyle.types.Id.first freestyle.types.Id.second freestyle.types.IntegrationType freestyle.types.Interface0D freestyle.types.Interface0D.__init__() freestyle.types.Interface0D.get_fedge() freestyle.types.Interface0D.id freestyle.types.Interface0D.name freestyle.types.Interface0D.nature freestyle.types.Interface0D.point_2d freestyle.types.Interface0D.point_3d freestyle.types.Interface0D.projected_x freestyle.types.Interface0D.projected_y freestyle.types.Interface0D.projected_z freestyle.types.Interface0DIterator freestyle.types.Interface0DIterator.__init__() freestyle.types.Interface0DIterator.at_last freestyle.types.Interface0DIterator.object freestyle.types.Interface0DIterator.t freestyle.types.Interface0DIterator.u freestyle.types.Interface1D freestyle.types.Interface1D.__init__() freestyle.types.Interface1D.points_begin() freestyle.types.Interface1D.points_end() freestyle.types.Interface1D.vertices_begin() freestyle.types.Interface1D.vertices_end() freestyle.types.Interface1D.id freestyle.types.Interface1D.length_2d freestyle.types.Interface1D.name freestyle.types.Interface1D.nature freestyle.types.Interface1D.time_stamp freestyle.types.Iterator freestyle.types.Iterator.__init__() freestyle.types.Iterator.decrement() freestyle.types.Iterator.increment() freestyle.types.Iterator.is_begin freestyle.types.Iterator.is_end freestyle.types.Iterator.name freestyle.types.Material freestyle.types.Material.__init__() freestyle.types.Material.ambient freestyle.types.Material.diffuse freestyle.types.Material.emission freestyle.types.Material.line freestyle.types.Material.priority freestyle.types.Material.shininess freestyle.types.Material.specular freestyle.types.MediumType freestyle.types.Nature freestyle.types.Noise freestyle.types.Noise.__init__() freestyle.types.Noise.smoothNoise1() freestyle.types.Noise.smoothNoise2() freestyle.types.Noise.smoothNoise3() freestyle.types.Noise.turbulence1() freestyle.types.Noise.turbulence2() freestyle.types.Noise.turbulence3() freestyle.types.NonTVertex freestyle.types.NonTVertex.__init__() freestyle.types.NonTVertex.svertex freestyle.types.Operators freestyle.types.Operators.bidirectional_chain() freestyle.types.Operators.chain() freestyle.types.Operators.create() freestyle.types.Operators.get_chain_from_index() freestyle.types.Operators.get_chains_size() freestyle.types.Operators.get_stroke_from_index() freestyle.types.Operators.get_strokes_size() freestyle.types.Operators.get_view_edges_size() freestyle.types.Operators.get_viewedge_from_index() freestyle.types.Operators.recursive_split() freestyle.types.Operators.reset() freestyle.types.Operators.select() freestyle.types.Operators.sequential_split() freestyle.types.Operators.sort() freestyle.types.SShape freestyle.types.SShape.__init__() freestyle.types.SShape.add_edge() freestyle.types.SShape.add_vertex() freestyle.types.SShape.compute_bbox() freestyle.types.SShape.bbox freestyle.types.SShape.edges freestyle.types.SShape.id freestyle.types.SShape.name freestyle.types.SShape.vertices freestyle.types.SVertex freestyle.types.SVertex.__init__() freestyle.types.SVertex.add_fedge() freestyle.types.SVertex.add_normal() freestyle.types.SVertex.curvatures freestyle.types.SVertex.id freestyle.types.SVertex.normals freestyle.types.SVertex.normals_size freestyle.types.SVertex.point_2d freestyle.types.SVertex.point_3d freestyle.types.SVertex.viewvertex freestyle.types.SVertexIterator freestyle.types.SVertexIterator.__init__() freestyle.types.SVertexIterator.object freestyle.types.SVertexIterator.t freestyle.types.SVertexIterator.u freestyle.types.Stroke freestyle.types.Stroke.Stroke() freestyle.types.Stroke.compute_sampling() freestyle.types.Stroke.insert_vertex() freestyle.types.Stroke.remove_all_vertices() freestyle.types.Stroke.remove_vertex() freestyle.types.Stroke.resample() freestyle.types.Stroke.stroke_vertices_begin() freestyle.types.Stroke.stroke_vertices_end() freestyle.types.Stroke.stroke_vertices_size() freestyle.types.Stroke.update_length() freestyle.types.Stroke.id freestyle.types.Stroke.length_2d freestyle.types.Stroke.medium_type freestyle.types.Stroke.texture_id freestyle.types.Stroke.tips freestyle.types.StrokeAttribute freestyle.types.StrokeAttribute.__init__() freestyle.types.StrokeAttribute.get_attribute_real() freestyle.types.StrokeAttribute.get_attribute_vec2() freestyle.types.StrokeAttribute.get_attribute_vec3() freestyle.types.StrokeAttribute.has_attribute_real() freestyle.types.StrokeAttribute.has_attribute_vec2() freestyle.types.StrokeAttribute.has_attribute_vec3() freestyle.types.StrokeAttribute.set_attribute_real() freestyle.types.StrokeAttribute.set_attribute_vec2() freestyle.types.StrokeAttribute.set_attribute_vec3() freestyle.types.StrokeAttribute.alpha freestyle.types.StrokeAttribute.color freestyle.types.StrokeAttribute.thickness freestyle.types.StrokeAttribute.visible freestyle.types.StrokeShader freestyle.types.StrokeShader.__init__() freestyle.types.StrokeShader.shade() freestyle.types.StrokeShader.name freestyle.types.StrokeVertex freestyle.types.StrokeVertex.__init__() freestyle.types.StrokeVertex.attribute freestyle.types.StrokeVertex.curvilinear_abscissa freestyle.types.StrokeVertex.point freestyle.types.StrokeVertex.stroke_length freestyle.types.StrokeVertex.u freestyle.types.StrokeVertexIterator freestyle.types.StrokeVertexIterator.__init__() freestyle.types.StrokeVertexIterator.decremented() freestyle.types.StrokeVertexIterator.incremented() freestyle.types.StrokeVertexIterator.reversed() freestyle.types.StrokeVertexIterator.at_last freestyle.types.StrokeVertexIterator.object freestyle.types.StrokeVertexIterator.t freestyle.types.StrokeVertexIterator.u freestyle.types.TVertex freestyle.types.TVertex.__init__() freestyle.types.TVertex.get_mate() freestyle.types.TVertex.get_svertex() freestyle.types.TVertex.back_svertex freestyle.types.TVertex.front_svertex freestyle.types.TVertex.id freestyle.types.UnaryFunction0D freestyle.types.UnaryFunction0D.name freestyle.types.UnaryFunction0DDouble freestyle.types.UnaryFunction0DDouble.__init__() freestyle.types.UnaryFunction0DEdgeNature freestyle.types.UnaryFunction0DEdgeNature.__init__() freestyle.types.UnaryFunction0DFloat freestyle.types.UnaryFunction0DFloat.__init__() freestyle.types.UnaryFunction0DId freestyle.types.UnaryFunction0DId.__init__() freestyle.types.UnaryFunction0DMaterial freestyle.types.UnaryFunction0DMaterial.__init__() freestyle.types.UnaryFunction0DUnsigned freestyle.types.UnaryFunction0DUnsigned.__init__() freestyle.types.UnaryFunction0DVec2f freestyle.types.UnaryFunction0DVec2f.__init__() freestyle.types.UnaryFunction0DVec3f freestyle.types.UnaryFunction0DVec3f.__init__() freestyle.types.UnaryFunction0DVectorViewShape freestyle.types.UnaryFunction0DVectorViewShape.__init__() freestyle.types.UnaryFunction0DViewShape freestyle.types.UnaryFunction0DViewShape.__init__() freestyle.types.UnaryFunction1D freestyle.types.UnaryFunction1D.name freestyle.types.UnaryFunction1DDouble freestyle.types.UnaryFunction1DDouble.__init__() freestyle.types.UnaryFunction1DDouble.integration_type freestyle.types.UnaryFunction1DEdgeNature freestyle.types.UnaryFunction1DEdgeNature.__init__() freestyle.types.UnaryFunction1DEdgeNature.integration_type freestyle.types.UnaryFunction1DFloat freestyle.types.UnaryFunction1DFloat.__init__() freestyle.types.UnaryFunction1DFloat.integration_type freestyle.types.UnaryFunction1DUnsigned freestyle.types.UnaryFunction1DUnsigned.__init__() freestyle.types.UnaryFunction1DUnsigned.integration_type freestyle.types.UnaryFunction1DVec2f freestyle.types.UnaryFunction1DVec2f.__init__() freestyle.types.UnaryFunction1DVec2f.integration_type freestyle.types.UnaryFunction1DVec3f freestyle.types.UnaryFunction1DVec3f.__init__() freestyle.types.UnaryFunction1DVec3f.integration_type freestyle.types.UnaryFunction1DVectorViewShape freestyle.types.UnaryFunction1DVectorViewShape.__init__() freestyle.types.UnaryFunction1DVectorViewShape.integration_type freestyle.types.UnaryFunction1DVoid freestyle.types.UnaryFunction1DVoid.__init__() freestyle.types.UnaryFunction1DVoid.integration_type freestyle.types.UnaryPredicate0D freestyle.types.UnaryPredicate0D.__init__() freestyle.types.UnaryPredicate0D.__call__() freestyle.ty