pymel.core.general.MeshEdge

Inheritance diagram of MeshEdge

class MeshEdge(*args, **kwargs)
connectedEdges()
Return type:MeshEdge list
connectedFaces()
Return type:MeshFace list
connectedVertices()
Return type:MeshVertex list
getLength(space='preTransform')

This method returns the length of the current edge.

Parameters :

space : Space.Space

values: ‘transform’, ‘preTransform’, ‘object’, ‘world’

Return type:

float

Derived from api method maya.OpenMaya.MSpace.getLength

getPoint(index, space='preTransform')

Return the position of the specified vertex of the current edge.

Parameters :
index : int

The vertex of the edge we wish to examine (0 or 1)

space : Space.Space

The coordinate system for this operation

values: ‘transform’, ‘preTransform’, ‘object’, ‘world’

Return type:

Point

Derived from api method maya.OpenMaya.MSpace.point

isConnectedTo(component)
Return type:bool
isConnectedToEdge(index)

This method determines whether the given edge is connected to the current edge

Parameters :index : int
Return type:bool

Derived from api method maya.OpenMaya.MItMeshEdge.connectedToEdge

isConnectedToFace(index)

This method determines whether the given face contains the current edge

Parameters :index : int
Return type:bool

Derived from api method maya.OpenMaya.MItMeshEdge.connectedToFace

isOnBoundary()

This method checks to see if the current edge is a border edge.

Return type:bool

Derived from api method maya.OpenMaya.MItMeshEdge.onBoundary

isSmooth()

This method determines if the current edge in the iteration is smooth (soft).

Return type:bool

Derived from api method maya.OpenMaya.MItMeshEdge.isSmooth

numConnectedEdges()

This method returns the number of edges connected to the current edge.

Return type:int

Derived from api method maya.OpenMaya.MItMeshEdge.numConnectedEdges

numConnectedFaces()

This method returns the number of faces (1 or 2 ) connected to the current edge.

Return type:int

Derived from api method maya.OpenMaya.MItMeshEdge.numConnectedFaces

setPoint(point, index, space='preTransform')

Set the specified vertex of the current edge to the given value.

Parameters :
point : Point

The new value for the edge

index : int

The vertex index of the current edge we wish to set (0 or 1)

space : Space.Space

The coordinate system for this operation

values: ‘transform’, ‘preTransform’, ‘object’, ‘world’

Derived from api method maya.OpenMaya.MSpace.setPoint

setSmoothing(smooth=True)

This method sets the current edge to be hard or smooth (soft). The cleanupSmoothing method is no longer required to be called after setSmoothing in Maya3.0 and later versions.

Parameters :
smooth : bool

if true the edge will be smooth (soft), otherwise the edge will be hard.

Derived from api method maya.OpenMaya.MItMeshEdge.setSmoothing

Undo is not currently supported for this method

updateSurface()

Signal that this polygonal surface has changed and needs to redraw itself. Derived from api method maya.OpenMaya.MItMeshEdge.updateSurface

Undo is not currently supported for this method

Previous topic

pymel.core.general.MItComponent1D

Next topic

pymel.core.general.MeshFace

Core

Core Modules

Other Modules

This Page