getCentroid()
This method returns the centroid of a face.
Arguments
None.
Return value
A sequence of Floats specifying the X-, Y-, and Z-coordinates of the centroid of the face.
Exceptions
None.
Accessimport part mdb.models[name].parts[name].allInternalSets[name].faces[i] mdb.models[name].parts[name].allInternalSurfaces[name].faces[i] mdb.models[name].parts[name].allSets[name].faces[i] mdb.models[name].parts[name].allSurfaces[name].faces[i] mdb.models[name].parts[name].faces[i] mdb.models[name].parts[name].sets[name].faces[i] mdb.models[name].parts[name].surfaces[name].faces[i] import assembly mdb.models[name].rootAssembly.allInstances[name].faces[i] mdb.models[name].rootAssembly.allInstances[name].sets[name].faces[i] mdb.models[name].rootAssembly.allInstances[name].surfaces[name].faces[i] mdb.models[name].rootAssembly.allInternalSets[name].faces[i] mdb.models[name].rootAssembly.allInternalSurfaces[name].faces[i] mdb.models[name].rootAssembly.allSets[name].faces[i] mdb.models[name].rootAssembly.allSurfaces[name].faces[i] mdb.models[name].rootAssembly.instances[name].faces[i] mdb.models[name].rootAssembly.instances[name].sets[name].faces[i] mdb.models[name].rootAssembly.instances[name].surfaces[name].faces[i] mdb.models[name].rootAssembly.modelInstances[i].sets[name].faces[i] mdb.models[name].rootAssembly.modelInstances[i].surfaces[name]\ .faces[i] mdb.models[name].rootAssembly.sets[name].faces[i] mdb.models[name].rootAssembly.surfaces[name].faces[i] getCentroid()
This method returns the centroid of a face. ArgumentsNone. Return valueA sequence of Floats specifying the X-, Y-, and Z-coordinates of the centroid of the face. ExceptionsNone. getCurvature(...)
This method returns information about the curvature at a location on the face. Required arguments
Optional argumentsNone. Return valueA dictionary with keys 'evaluationPoint', 'principalAxis1', 'principalAxis2', 'curvature1', 'curvature2' and 'gaussianCurvature'. Where the evaluationPoint specifies the location at which the curvature was evaluated. 'principalAxis1' and 'principalAxis2' refer to the vectors specifying the two principal axes of the face. 'curvature1' and 'curvature2' specify the curvatures along the two principal axes. ExceptionsNone. getElements()
This method returns an array of element objects that are associated with the face. ArgumentsNone. Return valueA MeshElementArray object which is a sequence of MeshElement objects. ExceptionsNone. getElementFaces(...)
This method returns an array of mesh face objects. Each mesh face object contains the element label and the side of the element that lies on the geometric face. Required argumentsNone. Optional arguments
Return valueA MeshFaceArray object which is a sequence of MeshFace objects. ExceptionsNone. getNodes(...)
This method returns an array of mesh node objects. Each mesh node object contains the label of the node that lies on the geometric face. Required argumentsNone. Optional arguments
Return valueA MeshNodeArray object which is a sequence of MeshNode objects. ExceptionsNone. getNormal(...)
This method returns the normal to a face at the location specified by the pointOn member. The normal at a different location on the face can be obtained by specifying the optional point argument. Required argumentsNone. Optional arguments
Return valueA sequence of Floats specifying the X-, Y-, and Z-components of the normal to the face. ExceptionsAn exception is raised if the optional argument point is provided but the point cannot be projected onto the face. getSize(...)
This method returns a Float indicating the area of the face. Required argumentsNone. Optional arguments
Return valueA Float. ExceptionsNone. getEdges()
This method returns a sequence consisting of the edge ids of the edges on the face. ArgumentsNone. Return valueA tuple of integers. ExceptionsNone. getVertices()
This method returns a sequence consisting of the vertex ids of the vertices of the face. ArgumentsNone. Return valueA tuple of integers. ExceptionsNone. getCells()
This method returns a sequence consisting of the cell ids of the cells to which this face belongs. ArgumentsNone. Return valueA tuple of integers. ExceptionsNone. getAdjacentFaces()
This method returns an array of face objects that share at least one edge of the face. ArgumentsNone. Return valueA FaceArray object which is a sequence of Face objects. ExceptionsNone. getFacesByFaceAngle(...)
This method returns an array of Face objects that are obtained by recursively finding adjacent faces that are at an angle of less than or equal to the specified angle. Required arguments
Optional argumentsNone. Return valueA FaceArray object, which is a sequence of Face objects. ExceptionsNone. getFacesByCurvature()
This method returns an array of Face objects that are obtained by recursively finding adjacent faces that share the same curvature. ArgumentsNone. Return valueA FaceArray object, which is a sequence of Face objects. ExceptionsNone. isNormalFlipped()
This method determines whether the normal to the face is flipped from its default direction by the use of the flipNormal method on a Part object. ArgumentsNone. Return valueA Boolean value of True if the normal is flipped and False if not. ExceptionsNone. getCADAttributes(...)
This method returns an array of CAD attribute strings associated with the Face when the part was created from CAD data. ArgumentsNone. Return valueAn array of String ExceptionsNone. MembersThe Face object has the following members:
|