<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/TabletopShape",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "TabletopKit"
    ],
    "preciseIdentifier" : "s:11TabletopKit0A5ShapeV"
  },
  "title" : "TabletopShape"
}
-->

# TabletopShape

An object that represents the physical properties of the table.

```
struct TabletopShape
```

## Overview

To create a round table, use the [`round(center:radius:thickness:in:)`](/documentation/TabletopKit/TabletopShape/round(center:radius:thickness:in:)) initializer, or if you render the table using RealityKit, the [`round(entity:)`](/documentation/TabletopKit/TabletopShape/round(entity:)) initializer. For a rectangular table, use the equivalent [`rectangular(center:width:height:thickness:in:)`](/documentation/TabletopKit/TabletopShape/rectangular(center:width:height:thickness:in:)) or [`rectangular(entity:)`](/documentation/TabletopKit/TabletopShape/rectangular(entity:)) initializer.

## Topics

### Creating a round or rectangular table

[`static func rectangular(center: Point3D, width: Float, height: Float, thickness: Float, in: UnitLength) -> TabletopShape`](/documentation/TabletopKit/TabletopShape/rectangular(center:width:height:thickness:in:))

Creates a rectangular tabletop shape with the specified center and dimensions.

[`static func round(center: Point3D, radius: Float, thickness: Float, in: UnitLength) -> TabletopShape`](/documentation/TabletopKit/TabletopShape/round(center:radius:thickness:in:))

Creates a round tabletop shape with the specified center, radius, and thickness.

### Creating a table that you render using an entity

[`static func rectangular(entity: Entity) -> TabletopShape`](/documentation/TabletopKit/TabletopShape/rectangular(entity:))

[`static func round(entity: Entity) -> TabletopShape`](/documentation/TabletopKit/TabletopShape/round(entity:))

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)