Home | Trees | Indices | Help |
---|
|
object --+ | FMEGeometry --+ | FMESurface --+ | FMESimpleSurface --+ | FMEFace
init(MultipleInvocations)
FME Face class.
Create an instance of a Face geometry object.
init(boundary, mode)
This routine creates a new Face geometry object. The stroked boundary of the area isused. If there are any errors, None may be returned. If the area passed in is not in 3D, then the default value for the z coordinates is 0.0
Parameters
boundary (FMEArea)
- The boundary as an area.
mode(int)
- The mode. Must be either FME_CLOSE_3D_AVERAGE_MODE, FME_CLOSE_3D_EXTEND_MODE, or FME_CLOSE_3D_EXTEND_OR_AVERAGE_Z_MODE.
Returns: FMEFace
init(boundary, mode, matrix)
This routine creates a new Face geometry object. With the specified transformation matirx
Parameters
boundary (FMEArea)
- The boundary as an area.
mode(int)
- The mode. Must be either FME_CLOSE_3D_AVERAGE_MODE, FME_CLOSE_3D_EXTEND_MODE, or FME_CLOSE_3D_EXTEND_OR_AVERAGE_Z_MODE.
matrix (list
of list
s of
float
s)
- transformation matrix applied to the
face, formatted [[dddd][dddd][dddd]].
Returns: FMEFace
init(boundary, mode)
This routine creates a new Face geometry object. The stroked boundary of the line isused. If there are any errors, None may be returned. If the line passed in is not in 3D, then the default value for the z coordinates is 0.0
Parameters
boundary (FMELine)
- The boundary as an line.
mode(int)
- The mode. Must be either FME_CLOSE_3D_AVERAGE_MODE, FME_CLOSE_3D_EXTEND_MODE, or FME_CLOSE_3D_EXTEND_OR_AVERAGE_Z_MODE.
Returns: FMEFace
init(boundary, mode, matrix)
This routine creates a new Face geometry object. With the specified transformation matirx
Parameters
boundary (FMELine)
- The boundary as an line.
mode(int)
- The mode. Must be either FME_CLOSE_3D_AVERAGE_MODE, FME_CLOSE_3D_EXTEND_MODE, or FME_CLOSE_3D_EXTEND_OR_AVERAGE_Z_MODE.
matrix (list
of list
s of
float
s)
- transformation matrix applied to the
face, formatted [[dddd][dddd][dddd]].
Returns: FMEFace
init(points, mode)
Creates a face from the list of points passed in.
Parameters
points (list of tuple of float)
- The list of points to
set to the face. The points are represented as (x, y, z) tuples
mode(int)
- The mode. Must be either FME_CLOSE_3D_AVERAGE_MODE, FME_CLOSE_3D_EXTEND_MODE, or FME_CLOSE_3D_EXTEND_OR_AVERAGE_Z_MODE.
Returns: FMEFace
init(points, mode matrix)
Creates a face from the list of points passed in.
Parameters
points (list of tuple of float)
- The list of points to
set to the face. The points are represented as (x, y, z) tuples
mode(int)
- The mode. Must be either FME_CLOSE_3D_AVERAGE_MODE, FME_CLOSE_3D_EXTEND_MODE, or FME_CLOSE_3D_EXTEND_OR_AVERAGE_Z_MODE.
matrix (list
of list
s of
float
s)
- transformation matrix applied to the
face, formatted [[dddd][dddd][dddd]].
Returns: FMEFace
init(face)
Create a copy of the passed in Face geometry object.
Parameters
face FMEFace
- The Face geometry object to create
a copy of.
Returns: FMEFace
|
|||
|
|||
None
|
|
||
None
|
|
||
FMEArea of a terminal type. |
|
||
FMEArea of a terminal type. |
|
||
tuple of 3 float s
|
|
||
list of list s of float s
|
|
||
bool
|
|
||
bool
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Adds an inner-boundary area to this face, represented by the specified
curve. Refer to setArea() for the usage of the parameter closeMode. If
|
Adds an inner-boundary area to this face. represented by the specified
simple area. Refer to setArea() for the usage of the parameter closeMode. If
|
Returns the face as an area.
|
Returns the face as an area in local coordinates.
|
Returns the normal vector of this face, normalized to the unit length. The returned vector is computed using Newell's method on the vertices contained on the outer boundary of this face. If the face is a single point, then a zero vector will be returned.
|
Gets this face's transformation matrix. If the face does not have such a matrix, an identity matrix is returned. Only the top three rows of the matrix will be returned, as the bottom row is always [ 0 0 0 1 ].
|
This method determines if the face has a transformation matrix or not.
|
Determines if face is convex. The polygon making up the area is convex if all internal angles are less than 180 degrees and it's not self-intersecting. Imperfectly planar 3D polygons are tolerated.
|
Sets the area of this face. The existing area will be replaced and the transformation matrix will be reset.The parameter closeMode specifies how this face treates areas that are not closed in 3D.
|
Sets the area of this face. the transformation matrix untouched.Refer to setArea() for the usage of the parameter closeMode.
|
Sets this face's transformation matrix, replacing the existing matrix if it exists. Only three rows are expected in the input array, as a bottom row of [ 0 0 0 1 ] is assumed.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Nov 26 19:10:16 2015 | http://epydoc.sourceforge.net |