NetworkArtist
- class compas_blender.artists.NetworkArtist(*args, **kwargs)[source]
Bases:
compas_blender.artists.artist.BlenderArtist,compas.artists.networkartist.NetworkArtistArtist for COMPAS network objects.
- Parameters
network (
compas.datastructures.Network) – A COMPAS network.collection (str or
bpy.types.Collection) – The name of the collection the object belongs to.nodes (list of int, optional) – A list of node identifiers. Default is
None, in which case all nodes are drawn.edges (list, optional) – A list of edge keys (as uv pairs) identifying which edges to draw. The default is
None, in which case all edges are drawn.nodecolor (rgb-tuple or dict of rgb-tuples, optional) – The color specification for the nodes.
edgecolor (rgb-tuple or dict of rgb-tuples, optional) – The color specification for the edges.
show_nodes (bool, optional)
show_edges (bool, optional)
- Attributes
nodecollection (
bpy.types.Collection) – The collection containing the nodes.edgecollection (
bpy.types.Collection) – The collection containing the edges.nodelabelcollection (
bpy.types.Collection) – The collection containing the node labels.edgelabelcollection (
bpy.types.Collection) – The collection containing the edge labels.
Attributes
edgecollectionedgelabelcollectionnodecollectionnodelabelcollectionInherited Attributes
AVAILABLE_CONTEXTSCONTEXTITEM_ARTISTcollectiondefault_edgecolordefault_edgewidthdefault_nodecolordefault_nodesizeedge_coloredge_textedge_widthedgesnetworknode_colornode_sizenode_textnode_xyznodesMethods
Draw the network.
Draw labels for a selection of edges.
Draw a selection of edges.
Draw labels for a selection nodes.
Draw a selection of nodes.
Inherited Methods
Build an artist corresponding to the item type.