Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

  • Declared in: RT.Modeling.Md

Declaration

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

Summary

Generates a 3D model by extruding a polygon from 2D space along the y-axis.

Parameters

this IEnumerable<PointD>polygon The polygon to extrude.
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.