PathOutline: Add point correspondences to the outline

Description Details Value Super classes Public fields Methods

Description

Add point correspondences to the outline

Add point correspondences to the outline

Details

The member function stitchSubpaths() stitches together two subpaths of the outline. One subpath is stitched in the forward direction from the point indexed by VF0 to the point indexed by VF1. The other is stitched in the backward direction from VB0 to VB1. Each point in the subpath is linked to points in the opposing pathway at an equal or near-equal fraction along. If a point exists in the opposing pathway within a distance epsilon of the projection, this point is connected. If no point exists within this tolerance, a new point is created.

Value

To the Outline object this adds

hf

point correspondence mapping in forward direction for points on boundary

hb

point correspondence mapping in backward direction for points on boundary

Super classes

retistruct::OutlineCommon -> retistruct::Outline -> PathOutline

Public fields

hf

Forward correspondences

hb

Backward correspondences

Methods

Public methods

Inherited methods

Method addPoints()

Add points to the outline register of points

Usage
PathOutline$addPoints(P)
Arguments
P

2 column matrix of points to add

Returns

The ID of each added point in the register. If points already exist a point will not be created in the register, but an ID will be returned


Method nextPoint()

Get next point in path for

Usage
PathOutline$nextPoint(pids)
Arguments
pids

Point IDs of points to get next position


Method insertPoint()

Insert point at a fractional distance between points

Usage
PathOutline$insertPoint(i0, i1, f)
Arguments
i0

Point ID of first point

i1

Point ID of second point

f

Fraction of distance between points i0 and i1 at which to insert point


Method stitchSubpaths()

Stitch subpaths

Usage
PathOutline$stitchSubpaths(VF0, VF1, VB0, VB1, epsilon)
Arguments
VF0

First vertex of “forward” subpath

VF1

Second vertex of “forward” subpath

VB0

First vertex of “backward” subpath

VB1

Second vertex of “backward” subpath

epsilon

Minimum distance between points


Method clone()

The objects of this class are cloneable with this method.

Usage
PathOutline$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


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