EngineKit
Torus Class Reference

#import <Torus.h>

Inheritance diagram for Torus:
Shape <TorusExport> Item

Class Methods

(instancetype) + torus
 
- Class Methods inherited from Item
(instancetype) + create
 
- Class Methods inherited from <TorusExport>
(instancetype) + create
 

Properties

CGFloat ringRadius
 
CGFloat pipeRadius
 
- Properties inherited from Shape
id color
 
- Properties inherited from Item
SCNNode * node
 The node that this Item is wrapping.
 
id position
 
id rotation
 
id scale
 
SCNGeometry * geometry
 
- Properties inherited from <TorusExport>
id position
 
id rotation
 
id scale
 
id color
 
CGFloat ringRadius
 
CGFloat pipeRadius
 

Detailed Description

A torus, which is a shape much like a donut, with specifiable ring radius and pipe radius.

Method Documentation

+ (SCNTorus *) torus

Creates a new instance of Torus, with the default measures set by SCNTorus.

Returns
a new, default instance of Torus.

Reimplemented from <TorusExport>.

Property Documentation

- (CGFloat) pipeRadius
readwritenonatomicassign

An alias for the SCNTorus's pipeRadius property. Speficies the radius that the Torus's pipe will have, or the donut's thickness.

- (CGFloat) ringRadius
readwritenonatomicassign

An alias for the SCNTorus's ringRadius property. Speficies the radius that the Torus's ring will have, or how wide the donut will be.


The documentation for this class was generated from the following files: