Platforms to show: All Mac Windows Linux Cross-Platform

SCNGeometryMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method SceneKit MBS Mac64bit Plugin 18.4 Yes No No Yes, macOS only No
Function: Creates a new geometry object with no content (or default content).
Notes:
This method creates a geometry with no visible content. You can use an empty geometry with another geometry’s levelsOfDetail property to make the geometry disappear when it is too far away from the camera to usefully render.
SceneKit’s SCNGeometryMBS subclasses use this method to create geometry instances with default contents. For example, if you call this method on the SCNSphereMBS class, it creates a sphere geometry whose radius property has the default value of 0.5.
You cannot add geometry sources or elements to a geometry object after creating it. To create a custom geometry from your own source and element data, use the geometryWithSources method.

Feedback, Comments & Corrections

SCNGeometryMBS.copy as SCNGeometryMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method SceneKit MBS Mac64bit Plugin 19.1 Yes No No Yes, macOS only No
Function: Creates a copy of the geometry.

Feedback, Comments & Corrections

SCNGeometryMBS.geometryElementAtIndex(index as Integer) as SCNGeometryElementMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method SceneKit MBS Mac64bit Plugin 19.3 Yes No No Yes, macOS only No
Function: Returns the geometry element at a specified index.
Notes: Each SCNGeometryElementMBS object describes how vertices from the geometry’s sources are combined into polygons to create the geometry’s shape. Visible geometries contain at least one element.

Feedback, Comments & Corrections

SCNGeometryMBS.geometryElements as SCNGeometryElementMBS()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method SceneKit MBS Mac64bit Plugin 19.3 Yes No No Yes, macOS only No
Function: An array of geometry elements that describe the geometry’s shape.
Notes:
Each SCNGeometryElementMBS object describes how vertices from the geometry’s sources are combined into polygons to create the geometry’s shape. Visible geometries contain at least one element.
For geometries with multiple elements, you can use the materials property to attach different materials to each element.

Feedback, Comments & Corrections

SCNGeometryMBS.geometrySources as SCNGeometrySourceMBS()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method SceneKit MBS Mac64bit Plugin 19.3 Yes No No Yes, macOS only No
Function: An array of geometry sources that provide vertex data for the geometry.
Notes: Each SCNGeometrySourceMBS object describes an attribute of all vertices in the geometry (such as vertex position, surface normal vector, color, or texture mapping coordinates) identified by the source’s semantic property. A geometry always has at least one source (for the SCNGeometrySourceSemanticVertex semantic), typically has additional sources for use in lighting and shading, and may have other sources for skeletal animation or surface subdivision information.

Feedback, Comments & Corrections

SCNGeometryMBS.geometrySourcesForSemantic(semantic as String) as SCNGeometrySourceMBS()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method SceneKit MBS Mac64bit Plugin 19.3 Yes No No Yes, macOS only No
Function: Returns the geometry sources for a specified semantic.
Notes:
semantic: A constant identifying a semantic for which to return geometry sources. See Geometry Semantic Identifiers for possible values.

Returns an array of SCNGeometrySource objects, or nil if the geometry has no source for the specified semantic.

Each SCNGeometrySourceMBS object describes an attribute of all vertices in the geometry (such as vertex position, surface normal vector, color, or texture mapping coordinates) identified by the source’s semantic property. A geometry always has at least one source, for the SCNGeometrySourceSemanticVertex semantic, typically has additional sources for use in lighting and shading, and may have other sources for skeletal animation or surface subdivision information.
The vertex, normal, and color semantics each refer to at most one source. A geometry may have multiple sources for the SCNGeometrySourceSemanticTexcoord semantic—in this case, indices in the returned array correspond to values for the mappingChannel property used when attaching textures to materials.

Feedback, Comments & Corrections

SCNGeometryMBS.insertMaterial(Material as SCNMaterialMBS, Index as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method SceneKit MBS Mac64bit Plugin 19.1 Yes No No Yes, macOS only No
Function: Insert a material in the materials array at the specified index.
Notes:
material: The material to insert.
index: Index in the materials array to insert the new material.

Feedback, Comments & Corrections

SCNGeometryMBS.levelsOfDetail as SCNLevelOfDetailMBS()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method SceneKit MBS Mac64bit Plugin 19.3 Yes No No Yes, macOS only No
Function: An array of SCNLevelOfDetail objects for managing the geometry’s appearance when viewed from far away.
Notes: Because rendering a complex geometry incurs a performance cost, you can use level-of-detail objects to substitute simpler geometries in its place as its distance from the point of view camera increases (or its apparent size decreases). For details, see SCNLevelOfDetailMBS.

Feedback, Comments & Corrections

SCNGeometryMBS.materials as SCNMaterialMBS()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method SceneKit MBS Mac64bit Plugin 19.1 Yes No No Yes, macOS only No
Function: Specifies the receiver's materials array.
Notes: Each geometry element can be rendered using a different material. The index of the material used for a geometry element is equal to the index of that element modulo the number of materials.

Feedback, Comments & Corrections

SCNGeometryMBS.materialWithName(name as string) as SCNMaterialMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method SceneKit MBS Mac64bit Plugin 19.1 Yes No No Yes, macOS only No
Function: Return the first material from the materials array of the receiver with the specified name.
Notes: name: The name of the material to retrieve.

Feedback, Comments & Corrections

SCNGeometryMBS.removeMaterial(Index as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method SceneKit MBS Mac64bit Plugin 19.1 Yes No No Yes, macOS only No
Function: Remove the material at the specified index from the materials array.
Notes: index: The index of the material to remove from the 'materials' array.

Feedback, Comments & Corrections

SCNGeometryMBS.replaceMaterial(Index as Integer, Material as SCNMaterialMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method SceneKit MBS Mac64bit Plugin 19.1 Yes No No Yes, macOS only No
Function: Remove the material at the index 'index' from the materials array of the receiver and insert 'material' in its position.
Notes:
index: The index of the material to replace in the materials array.
material: The new material that will replace the previous one.

Feedback, Comments & Corrections

SCNGeometryMBS.setLevelsOfDetail(LevelsOfDetails() as SCNLevelOfDetailMBS = nil)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method SceneKit MBS Mac64bit Plugin 19.3 Yes No No Yes, macOS only No
Function: Sets an array of SCNLevelOfDetail objects for managing the geometry’s appearance when viewed from far away.
Notes: Value can be nil to clear it.

Feedback, Comments & Corrections

SCNGeometryMBS.setMaterials(materials() as SCNMaterialMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method SceneKit MBS Mac64bit Plugin 19.1 Yes No No Yes, macOS only No
Function: Sets the materials.

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo PDF Plugins