Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNGeometryMBS class.

SCNGeometryMBS.edgeCreasesElement as SCNGeometryElementMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The geometry element identifying which edges of the geometry’s surface should remain sharp after subdivision.

This geometry element’s primitiveType value must be SCNGeometryPrimitiveTypeLine. The geometry element’s data is an array of vertex indices, each pair of which defines a line segment identifying an edge to be treated as a crease during subdivision. Use the edgeCreasesSource property to specify the smoothness or sharpness of each crease.
(Read and Write property)

SCNGeometryMBS.edgeCreasesSource as SCNGeometrySourceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The geometry source specifying the smoothness or sharpness of edges after surface subdivision.

This geometry source’s semantic value must be SCNGeometrySourceSemanticEdgeCrease. Its data is an array of scalar values (that is, the source’s componentsPerVector value is 1). The value at an index in the geometry source determines the smoothness or sharpness of the edge identified by the primitive at the corresponding index in the edgeCreasesElement geometry element: a value of 0.0 specifies a completely smoothed edge, and a value of 10.0 or greater specifies an infinitely sharp edge.
(Read and Write property)

SCNGeometryMBS.firstMaterial as SCNMaterialMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Determines the first material of the geometry. Returns nil if the geometry has no material.

This method is here for convenience. It is equivalent to the first object in the "materials" array above.
(Read and Write property)

Some examples using this property:

SCNGeometryMBS.geometryElementCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns the number of geometry elements owned by the geometry.

(Read only property)

SCNGeometryMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The internal object reference.

(Read and Write property)

SCNGeometryMBS.Name as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A name associated with the geometry object.

You can provide a descriptive name for a geometry object to make managing your scene graph easier. Geometries loaded from a scene file may have names assigned by an artist using a 3D authoring tool. Use the SCNSceneSourceMBS class to examine geometries in a scene file without loading its scene graph.

Geometry names are saved when you export a scene to a file using its writeToURL method. They also appear in the Xcode scene editor.
(Read and Write property)

SCNGeometryMBS.subdivisionLevel as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Specifies the subdivision level of the receiver.

Defaults to 0.
A subdivision level of 0 means no subdivision. When the `tessellator` property of the receiver is not nil, the refinement is done on the GPU.
(Read and Write property)

SCNGeometryMBS.tessellator as SCNGeometryTessellatorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Specifies how the geometry should be tessellated at render time on the GPU.

Defaults to nil.
(Read and Write property)

SCNGeometryMBS.wantsAdaptiveSubdivision as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Specifies if the subdivision is adaptive or uniform.

Defaults to true.
Adaptive subdivision requires that the `tessellator` property of the receiver is not nil.
(Read and Write property)

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...