Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: IEnumerable<VertexInfo[]> Extrude(this IEnumerable<IEnumerable<PointD>>, double, bool, bool)

  • Declared in: RT.Modeling.Md

Declaration

public static IEnumerable<VertexInfo[]> Extrude(
    this IEnumerable<IEnumerable<PointD>> polygons,
    double depth,
    bool includeBackFace = false,
    bool flatSideNormals = false
)

Summary

Generates a 3D model by extruding a set of polygons, potentially with holes, from 2D space along the y-axis.

Parameters

this IEnumerable<IEnumerable<PointD>>polygons The polygons to extrude. Polygons going clockwise are assumed to be faces, polygons going counter-clockwise are assumed to be holes.
doubledepth The amount along the y-axis by which to extrude.
boolincludeBackFace If true, a back face is also included.
boolflatSideNormals If true, the “walls” of the extrusion at all assumed to be flat (normal vectors will be perpendicular). Otherwise, they are assumed to be curves (normal vectors are averages).

Returns

A collection of faces.