fmeobjects.FMEGeometryTools.triangulateToSurface
- FMEGeometryTools.triangulateToSurface()
triangulateToSurface(geometry),
This routine will return a
FMEGeometryobject with triangle faces. This feature can support all geometries except forFMEAggregate,FMECSGSolid,FMECompositeSolidandFMEMultiSolid. The outputFMEGeometryis neverNone. The resultingFMEGeometryis not guaranteed to contain only triangles, so it is the user’s responsiblity to check this. The geometry type of the returnedFMEGeometryobject depends on the type of input geometry:If the input is a
FMETriangleStrip,FMETriangleFan, orFMEFacethat is already triangular, the resultingFMEGeometryis a copy of the input geometry and hence has the same geometry type as the input.If the input is a sliver face, the resulting
FMEGeometryis a copy of the original geometry.If the input is a non-triangular and non-sliver Face, non-triangular Area, or RectangleFace, the resulting
FMEGeometryis aFMECompositeSurface, whose components are triangular Faces. Otherwise the component is aFMECompositeSurfaceconsisting of triangular Faces.If the input is a CompositeSurface, the resulting
FMEGeometryis aFMECompositeSurface. The type of each component in the resultingFMECompositeSurfaceis determined as described above.If the input is a MultiSurface, the resulting
FMEGeometryis aFMEMultiSurface. The type of each component in the resultingFMEMultiSurfaceis determined as described above.If the input is a Box, Extrusion, or BRepSolid, the resulting
FMEGeometryis aFMEBRepSolid.If the input is a MultiArea, the resulting
IFMEGeometryis aFMEMultiSurface. The type of each component in the resultingFMEMultiSurfaceis determined as described above.If the input is a Mesh, the resulting
FMEGeometryis aFMEMultiSurface.
For the case of
FMEArea, the triangulation will occur with respect to the x- and y-coordinates, the z values are ignored, yet they will be retained in the output. If there are any errors an exception will be thrown.
- Parameters:
geometry (FMEGeometry) – The geometry to triangulate to the surface.
- Return type:
- Returns:
Note: This method returns a terminal geometry type of the
FMEGeometry; i.e. one of the leaf classes in theFMEGeometryinheritance graph. For example, aFMETriangleStripis returned if the geometry truly is a triangle strip.- Raises:
FMEException – An exception is raised if an error occurred.