TriangulatedFragment: Class to triangulate Fragments

Description Super class Public fields Methods Author(s)

Description

A TriangulatedFragment contains a function to create a triangulated mesh over an fragment, and fields to hold the mesh information.

Super class

retistruct::Fragment -> TriangulatedFragment

Public fields

T

3 column matrix in which each row contains IDs of points of each triangle

A

Area of each triangle in the mesh - has same number of elements as there are rows of T

Cu

2 column matrix in which each row contains IDs of points of edge in mesh

L

Length of each edge in the mesh - has same number of elements as there are rows of Cu

A.signed

Signed area of each triangle generated using tri.area.signed. Positive sign indicates points are anticlockwise direction; negative indicates clockwise.

Methods

Public methods

Inherited methods

Method new()

Constructor

Usage
TriangulatedFragment$new(
  fragment,
  n = 200,
  suppress.external.steiner = FALSE,
  report = message
)
Arguments
fragment

Fragment to triangulate

n

Minimum number of points in the triangulation

suppress.external.steiner

If TRUE prevent the addition of points in the outline. This happens to maintain triangle quality.

report

Function to report progress


Method clone()

The objects of this class are cloneable with this method.

Usage
TriangulatedFragment$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Author(s)

David Sterratt


retistruct documentation built on April 4, 2020, 5:08 p.m.