Learn R Programming

retistruct (version 0.6.3)

TriangulatedFragment: Class to triangulate Fragments

Description

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

Arguments

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

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.