Contents

SCNPlane

A rectangular, one-sided plane geometry of specified width and height.

Declaration

class SCNPlane

Overview

[Image]

A plane defines a flat surface in the x- and y-axis dimensions of its local coordinate space according to its width and height properties. To orient a plane differently, adjust the transform property of the node containing the plane geometry. You can create a rounded rectangular plane using the cornerRadius property.

The surface is one-sided. Its surface normal vectors point in the positive z-axis direction of its local coordinate space, so it is only visible from that direction by default. To render both sides of a plane, either set the isDoubleSided property of its material to true or create two plane geometries and orient them back to back.

Control the level of detail with the widthSegmentCount, heightSegmentCount, and cornerSegmentCount properties. A higher segment count produces more vertices, which can improve rendering quality for certain lighting models or custom shader effects, but at a cost to rendering performance.

Topics

Creating a Plane

Adjusting a Plane’s Dimensions

Adjusting Geometric Detail

Adding Rounded Corners

See Also

Basic Shapes