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 |
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 |
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 |
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 |
(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 |
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | SceneKit | MBS Mac64bit Plugin | 18.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
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.shaderModifiers as Dictionary
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | SceneKit | MBS Mac64bit Plugin | 24.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
The dictionary’s keys must be from the set of constants described in Shader Modifier Entry Point Keys. Each key represents a possible entry point in SceneKit’s shader programs, whose corresponding value is a string containing a shader source code snippet to be included in the shader program at that entry point.
See Use Shader Modifiers to Extend SceneKit Shading in the protocol overview for a complete discussion of shader modifiers.
https://developer.apple.com/documentation/scenekit/scnshadable#1654834
(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 |
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 |
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 |
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.
