Module sverchok.utils.nodes_mixins.sockets_config

Expand source code
# This file is part of project Sverchok. It's copyrighted by the contributors
# recorded in the version control history of the file, available from
# its original location https://github.com/nortikin/sverchok/commit/master
#
# SPDX-License-Identifier: GPL3
# License-Filename: LICENSE


class ModifierNode:
    @property
    def sv_internal_links(self):
        mapping = [
            (self.inputs[0], self.outputs[0]),
            (self.inputs[1], self.outputs[1]),
            (self.inputs[2], self.outputs[2]),
        ]
        if 'FaceData' in self.outputs:
            mapping.append((self.inputs['FaceData'], self.outputs['FaceData']))
        return mapping


class ModifierLiteNode:
    @property
    def sv_internal_links(self):
        return [
            (self.inputs[0], self.outputs[0]),
            (self.inputs[1], self.outputs[1]),
        ]


class TransformNode:
    @property
    def sv_internal_links(self):
        return [(self.inputs[0], self.outputs[0])]


class EdgeGeneratorNode:
    @property
    def sv_internal_links(self):
        return [
            (self.inputs[0], self.outputs[0]),
            (self.inputs[1], self.outputs[1]),
        ]


class EdgeGeneratorLiteNode:
    @property
    def sv_internal_links(self):
        return [
            (self.inputs[0], self.outputs[0]),
        ]

Classes

class EdgeGeneratorLiteNode
Expand source code
class EdgeGeneratorLiteNode:
    @property
    def sv_internal_links(self):
        return [
            (self.inputs[0], self.outputs[0]),
        ]

Subclasses

  • sverchok.nodes.modifier_make.lathe.SvLatheNode
  • sverchok.nodes.modifier_make.offset_line.SvOffsetLineNode
  • sverchok.nodes.modifier_make.pipe_tubes.SvPipeNode

Instance variables

Expand source code
@property
def sv_internal_links(self):
    return [
        (self.inputs[0], self.outputs[0]),
    ]
class EdgeGeneratorNode
Expand source code
class EdgeGeneratorNode:
    @property
    def sv_internal_links(self):
        return [
            (self.inputs[0], self.outputs[0]),
            (self.inputs[1], self.outputs[1]),
        ]

Subclasses

  • sverchok.nodes.modifier_make.framework.SvFrameworkNode

Instance variables

Expand source code
@property
def sv_internal_links(self):
    return [
        (self.inputs[0], self.outputs[0]),
        (self.inputs[1], self.outputs[1]),
    ]
class ModifierLiteNode
Expand source code
class ModifierLiteNode:
    @property
    def sv_internal_links(self):
        return [
            (self.inputs[0], self.outputs[0]),
            (self.inputs[1], self.outputs[1]),
        ]

Subclasses

  • sverchok.nodes.CAD.crop_mesh_2d.SvCropMesh2D
  • sverchok.nodes.CAD.edges_intersect_mk3.SvIntersectEdgesNodeMK3
  • sverchok.nodes.CAD.edges_to_faces_2d.SvEdgesToFaces2D
  • sverchok.nodes.CAD.inset_special_mk2.SvInsetSpecialMk2
  • sverchok.nodes.CAD.merge_mesh_2d.SvMergeMesh2D
  • sverchok.nodes.CAD.merge_mesh_2d_lite.SvMergeMesh2DLite
  • sverchok.nodes.modifier_change.delete_loose.SvDeleteLooseNode
  • sverchok.nodes.modifier_change.edgenet_to_paths.SvEdgenetToPathsNode
  • sverchok.nodes.modifier_change.extrude_multi_alt.SvMultiExtrudeAlt
  • sverchok.nodes.modifier_change.mesh_beautify.SvMeshBeautify
  • sverchok.nodes.modifier_change.mesh_separate.SvSeparateMeshNode
  • sverchok.nodes.modifier_change.polygons_boom.PolygonBoomNode
  • sverchok.nodes.modifier_change.vertices_mask.SvVertMaskNode
  • sverchok.nodes.modifier_make.contour2D.SvContourNode
  • sverchok.nodes.modifier_make.csg_booleanMK2.SvCSGBooleanNodeMK2
  • sverchok.nodes.modifier_make.edges_adaptative.SvAdaptiveEdgeNode
  • sverchok.nodes.modifier_make.join_tris.SvJoinTrianglesNode
  • sverchok.nodes.transforms.barycentric_transform.SvBarycentricTransformNode
  • sverchok.nodes.transforms.transform_select.SvTransformSelectNode

Instance variables

Expand source code
@property
def sv_internal_links(self):
    return [
        (self.inputs[0], self.outputs[0]),
        (self.inputs[1], self.outputs[1]),
    ]
class ModifierNode
Expand source code
class ModifierNode:
    @property
    def sv_internal_links(self):
        mapping = [
            (self.inputs[0], self.outputs[0]),
            (self.inputs[1], self.outputs[1]),
            (self.inputs[2], self.outputs[2]),
        ]
        if 'FaceData' in self.outputs:
            mapping.append((self.inputs['FaceData'], self.outputs['FaceData']))
        return mapping

Subclasses

  • sverchok.nodes.modifier_change.bevel.SvBevelNode
  • sverchok.nodes.modifier_change.dissolve_mesh_elements.SvDissolveMeshElements
  • sverchok.nodes.modifier_change.edge_boom.SvEdgeBoomNode
  • sverchok.nodes.modifier_change.edge_split.SvSplitEdgesMk3Node
  • sverchok.nodes.modifier_change.extrude_edges_mk2.SvExtrudeEdgesNodeMk2
  • sverchok.nodes.modifier_change.extrude_region.SvExtrudeRegionNode
  • sverchok.nodes.modifier_change.extrude_separate.SvExtrudeSeparateNode
  • sverchok.nodes.modifier_change.extrude_separate_lite.SvExtrudeSeparateLiteNode
  • sverchok.nodes.modifier_change.flip_normals.SvFlipNormalsNode
  • sverchok.nodes.modifier_change.follow_active_quads.SvFollowActiveQuads
  • sverchok.nodes.modifier_change.holes_fill.SvFillHolesNode
  • sverchok.nodes.modifier_change.inset_faces.SvInsetFaces
  • sverchok.nodes.modifier_change.limited_dissolve.SvLimitedDissolve
  • sverchok.nodes.modifier_change.limited_dissolve_mk2.SvLimitedDissolveMK2
  • sverchok.nodes.modifier_change.make_monotone.SvMakeMonotone
  • sverchok.nodes.modifier_change.merge_by_distance.SvMergeByDistanceNode
  • sverchok.nodes.modifier_change.mesh_clean.SvMeshCleanNode
  • sverchok.nodes.modifier_change.mesh_join_mk2.SvMeshJoinNodeMk2
  • sverchok.nodes.modifier_change.objects_along_edge.SvDuplicateAlongEdgeNode
  • sverchok.nodes.modifier_change.offset.SvOffsetNode
  • sverchok.nodes.modifier_change.planar_edgenet_to_polygons.SvPlanarEdgenetToPolygons
  • sverchok.nodes.modifier_change.planar_faces.SvPlanarFacesNode
  • sverchok.nodes.modifier_change.poke.SvPokeFacesNode
  • sverchok.nodes.modifier_change.recalc_normals.SvRecalcNormalsNode
  • sverchok.nodes.modifier_change.smooth.SvSmoothNode
  • sverchok.nodes.modifier_change.split_faces.SvSplitFacesNode
  • sverchok.nodes.modifier_change.split_mesh_elements.SvSplitMeshElements
  • sverchok.nodes.modifier_change.subdivide_mk2.SvSubdivideNodeMK2
  • sverchok.nodes.modifier_change.subdivide_to_quads.SvSubdivideToQuadsNode
  • sverchok.nodes.modifier_change.triangulate.SvTriangulateNode
  • sverchok.nodes.modifier_make.adaptive_polygons_mk3.SvAdaptivePolygonsNodeMk3
  • sverchok.nodes.modifier_make.bevel_curve.SvBevelCurveNode
  • sverchok.nodes.modifier_make.bisect.SvBisectNode
  • sverchok.nodes.modifier_make.clip_verts.SvClipVertsNode
  • sverchok.nodes.modifier_make.cut_object_by_surface.SvCutObjBySurfaceNode
  • sverchok.nodes.modifier_make.diamond_mesh.SvDiamondMeshNode
  • sverchok.nodes.modifier_make.dual_mesh.SvDualMeshNode
  • sverchok.nodes.modifier_make.fractal_curve.SvFractalCurveNode
  • sverchok.nodes.modifier_make.matrix_tube.SvMatrixTubeNode
  • sverchok.nodes.modifier_make.solidify_mk2.SvSolidifyNodeMk2
  • sverchok.nodes.modifier_make.unsubdivide.SvUnsubdivideNode
  • sverchok.nodes.modifier_make.uv_connect.LineConnectNodeMK2
  • sverchok.nodes.modifier_make.wireframe.SvWireframeNode
  • sverchok.nodes.transforms.symmetrize.SvSymmetrizeNode

Instance variables

Expand source code
@property
def sv_internal_links(self):
    mapping = [
        (self.inputs[0], self.outputs[0]),
        (self.inputs[1], self.outputs[1]),
        (self.inputs[2], self.outputs[2]),
    ]
    if 'FaceData' in self.outputs:
        mapping.append((self.inputs['FaceData'], self.outputs['FaceData']))
    return mapping
class TransformNode
Expand source code
class TransformNode:
    @property
    def sv_internal_links(self):
        return [(self.inputs[0], self.outputs[0])]

Subclasses

  • sverchok.nodes.modifier_change.flat_geometry.SvFlatGeometryNode
  • sverchok.nodes.modifier_change.relax_mesh.SvRelaxMeshNode
  • sverchok.nodes.modifier_change.rigid_origami.SvRigidOrigamiNode
  • sverchok.nodes.transforms.align_mesh_by_mesh.SvAlignMeshByMesh

Instance variables

Expand source code
@property
def sv_internal_links(self):
    return [(self.inputs[0], self.outputs[0])]