Table of Contents

Class Tri3dUtil

Namespace
Hi.Geom
Assembly
HiGeom.dll

Utility of Tri3d. Include generator of triangles from points.

public static class Tri3dUtil
Inheritance
Tri3dUtil
Inherited Members

Methods

GenTrisByAlignedLists(IList<Vec3d>, IList<Vec3d>, IList<Tri3d>)

public static void GenTrisByAlignedLists(IList<Vec3d> ps, IList<Vec3d> rrps, IList<Tri3d> dst)

Parameters

ps IList<Vec3d>
rrps IList<Vec3d>
dst IList<Tri3d>

GenTrisByAlignedLoops(IList<Vec3d>, IList<Vec3d>, IList<Tri3d>)

Generates triangles between two aligned loops of points.

public static void GenTrisByAlignedLoops(IList<Vec3d> ps, IList<Vec3d> rrps, IList<Tri3d> dst)

Parameters

ps IList<Vec3d>

First loop of points

rrps IList<Vec3d>

Second loop of points

dst IList<Tri3d>

The collection to add the generated triangles to

GenTrisByFan(IEnumerable<Vec3d>, Vec3d)

Generates triangles in a fan pattern from a sequence of points.

public static IEnumerable<Tri3d> GenTrisByFan(this IEnumerable<Vec3d> ps, Vec3d faceNormal = null)

Parameters

ps IEnumerable<Vec3d>

The sequence of points

faceNormal Vec3d

Optional face normal for the triangles

Returns

IEnumerable<Tri3d>

An enumerable of triangles forming a fan

GenTrisByNumAlignment(List<Vec3d>, List<Vec3d>, IList<Tri3d>)

Generates triangles between two lists of points with different numbers of points.

public static void GenTrisByNumAlignment(List<Vec3d> psA, List<Vec3d> psB, IList<Tri3d> dst)

Parameters

psA List<Vec3d>

First list of points

psB List<Vec3d>

Second list of points

dst IList<Tri3d>

The collection to add the generated triangles to

GenTrisByQuad(Vec3d, Vec3d, Vec3d, Vec3d, IList<Tri3d>)

Generates two triangles from a quadrilateral defined by four points.

public static void GenTrisByQuad(Vec3d p0, Vec3d p1, Vec3d p2, Vec3d p3, IList<Tri3d> dst)

Parameters

p0 Vec3d

First point of the quadrilateral

p1 Vec3d

Second point of the quadrilateral

p2 Vec3d

Third point of the quadrilateral

p3 Vec3d

Fourth point of the quadrilateral

dst IList<Tri3d>

The collection to add the generated triangles to

GenTrisByStar(Vec3d, IList<Vec3d>, IList<Tri3d>)

Generates triangles in a star pattern from a center point to a list of points.

public static void GenTrisByStar(Vec3d starP, IList<Vec3d> ps, IList<Tri3d> dst)

Parameters

starP Vec3d

The center point of the star

ps IList<Vec3d>

The list of points forming the perimeter

dst IList<Tri3d>

The collection to add the generated triangles to

GenTrisByStar(IList<Vec3d>, Vec3d, IList<Tri3d>)

Generates triangles in a star pattern from a list of points to a center point.

public static void GenTrisByStar(IList<Vec3d> ps, Vec3d starP, IList<Tri3d> dst)

Parameters

ps IList<Vec3d>

The list of points forming the perimeter

starP Vec3d

The center point of the star

dst IList<Tri3d>

The collection to add the generated triangles to