| TriangulatedOutline | R Documentation |
A TriangulatedOutline contains a function to create a
triangulated mesh over an outline, and fields to hold the mesh
information. Note that areas and lengths are all scaled using
the value of the scale field.
retistruct::OutlineCommon -> retistruct::Outline -> retistruct::PathOutline -> retistruct::AnnotatedOutline -> TriangulatedOutline
Tr3 column matrix in which each row contains IDs of points of each triangle
AArea of each triangle in the mesh - has same number of
elements as there are rows of T
A.totTotal area of the mesh
Cu2 column matrix in which each row contains IDs of
LLength of each edge in the mesh - has same number of
elements as there are rows of Cu
retistruct::OutlineCommon$clearFeatureSets()retistruct::OutlineCommon$getFeatureSet()retistruct::OutlineCommon$getFeatureSetTypes()retistruct::OutlineCommon$getFeatureSets()retistruct::OutlineCommon$getIDs()retistruct::Outline$addFeatureSet()retistruct::Outline$getDepth()retistruct::Outline$getFragment()retistruct::Outline$getFragmentIDs()retistruct::Outline$getFragmentIDsFromPointIDs()retistruct::Outline$getFragmentPointIDs()retistruct::Outline$getFragmentPoints()retistruct::Outline$getImage()retistruct::Outline$getOutlineLengths()retistruct::Outline$getOutlineSet()retistruct::Outline$getPoints()retistruct::Outline$getPointsScaled()retistruct::Outline$getPointsXY()retistruct::Outline$mapFragment()retistruct::Outline$mapPids()retistruct::Outline$replaceImage()retistruct::PathOutline$insertPoint()retistruct::PathOutline$nextPoint()retistruct::PathOutline$stitchSubpaths()retistruct::AnnotatedOutline$addFullCut()retistruct::AnnotatedOutline$addPoints()retistruct::AnnotatedOutline$addTear()retistruct::AnnotatedOutline$checkTears()retistruct::AnnotatedOutline$computeFullCutRelationships()retistruct::AnnotatedOutline$computeTearRelationships()retistruct::AnnotatedOutline$ensureFixedPointInRim()retistruct::AnnotatedOutline$getBoundarySets()retistruct::AnnotatedOutline$getFixedPoint()retistruct::AnnotatedOutline$getFullCut()retistruct::AnnotatedOutline$getFullCuts()retistruct::AnnotatedOutline$getRimLengths()retistruct::AnnotatedOutline$getRimSet()retistruct::AnnotatedOutline$getTear()retistruct::AnnotatedOutline$getTears()retistruct::AnnotatedOutline$initialize()retistruct::AnnotatedOutline$labelFullCutPoints()retistruct::AnnotatedOutline$labelTearPoints()retistruct::AnnotatedOutline$removeFullCut()retistruct::AnnotatedOutline$removeTear()retistruct::AnnotatedOutline$setFixedPoint()retistruct::AnnotatedOutline$whichFullCut()retistruct::AnnotatedOutline$whichTear()triangulate()Triangulate (mesh) outline
TriangulatedOutline$triangulate(n = 200, suppress.external.steiner = FALSE)
nDesired number of points in mesh
suppress.external.steinerBoolean variable describing whether to insert external Steiner points - see TriangulatedFragment
mapTriangulatedFragment()Map the point IDs of a TriangulatedFragment on the point IDs of this Outline
TriangulatedOutline$mapTriangulatedFragment(fragment, pids)
fragmentTriangulatedFragment to map
pidsPoint IDs in TriangulatedOutline of points in TriangulatedFragment
clone()The objects of this class are cloneable with this method.
TriangulatedOutline$clone(deep = FALSE)
deepWhether to make a deep clone.
David Sterratt
P <- rbind(c(1,1), c(2,1), c(2,-1),
c(1,-1), c(1,-2), c(-1,-2),
c(-1,-1), c(-2,-1),c(-2,1),
c(-1,1), c(-1,2), c(1,2))
o <- TriangulatedOutline$new(P)
o$addTear(c(3, 4, 5))
o$addTear(c(6, 7, 8))
o$addTear(c(9, 10, 11))
o$addTear(c(12, 1, 2))
flatplot(o)
P <- list(rbind(c(1,1), c(2,1), c(2.5,2), c(3,1), c(4,1), c(1,4)),
rbind(c(-1,1), c(-1,4), c(-2,3), c(-2,2), c(-3,2), c(-4,1)),
rbind(c(-4,-1), c(-1,-1), c(-1,-4)),
rbind(c(1,-1), c(2,-1), c(2.5,-2), c(3,-1), c(4,-1), c(1,-4)))
o <- TriangulatedOutline$new(P)
##' o$addTear(c(2, 3, 4))
o$addTear(c(17, 18, 19))
o$addTear(c(9, 10, 11))
o$addFullCut(c(1, 5, 16, 20))
flatplot(o)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.