Havn
PlatformLoreDocs Sign in
KernelBosonHintLore
  • Start here 2
  • Verbs and diagnostics 2
  • Foundations 78
  • Meshes 27
  • 2D polygons and regions 39
    • polygon2.of
    • polygon2.fromFlat
    • polygon2.rectangle
    • polygon2.convexHull
    • polygon2.points
    • polygon2.signedArea
    • polygon2.area
    • polygon2.isCounterClockwise
    • polygon2.reversed
    • polygon2.perimeter
    • polygon2.boundingBox
    • polygon2.windingNumber
    • polygon2.contains
    • polygon2.transformed
    • polygon2.onPlane
    • polygon2.toJSON
    • polygon2.union
    • polygon2.intersection
    • polygon2.difference
    • polygon2.xor
    • polygon2.minkowskiSum
    • polygon2.offset
    • polygon2.inset
    • polygon2.outset
    • polygon2.repaired
    • polygon2.triangulate
    • region2.of
    • region2.fromParts
    • region2.area
    • region2.boundingBox
    • region2.contains
    • region2.rings
    • region2.triangulate
    • region2.union
    • region2.intersection
    • region2.difference
    • region2.toJSON
    • triangulation2.minAngleDeg
    • triangulation2.toMesh
  • NURBS curves and surfaces 28
  • Selectors and queries 3
  • Surface samples 6
  • Roles and lineage 5
  • Form facts and relations 2
  • Sources 4
  • Transforms and merge 4
  • Mesh edits 13

Nothing in Kernel matches.

Docs/ Kernel/ 2D polygons and regions

polygon2.perimeter

The total length of the ring’s edges, closing edge included.

Value helperSince 0.4.0

Usage

TypeScript
polygon.perimeter(): number

Returns

A non-negative length in model units.

Example

TypeScript
Polygon2.rectangle(2, 3).value.perimeter() // → 10
Previouspolygon2.reversed Nextpolygon2.boundingBox

On this page

  1. Usage
  2. Returns
  3. Example
  1. Usage
  2. Returns
  3. Example
Havn Platform Lore Docs