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.boundingBox

The ring’s bounds, as a box in the z = 0 plane.

Value helperSince 0.4.0

Usage

TypeScript
polygon.boundingBox(): BBox

Returns

A BBox with min.z = max.z = 0.

Example

TypeScript
Polygon2.rectangle(2, 2).value.boundingBox() // → { min: { x: -1, y: -1, z: 0 }, max: { x: 1, y: 1, z: 0 } }

See also

  • region2.boundingBox
  • tolerance.forBox
Previouspolygon2.perimeter Nextpolygon2.windingNumber

On this page

  1. Usage
  2. Returns
  3. Example
  4. See also
  1. Usage
  2. Returns
  3. Example
  4. See also
Havn Platform Lore Docs