Surface
public struct Surface : Encodable
Undocumented
-
Hides/displays surfaces between minimum and maximum iso-values.
Declaration
Swift
public var show: Bool? -
Sets the number of iso-surfaces between minimum and maximum iso-values.
By default this value is 2 meaning that only minimum and maximum surfaces would be drawn.
Declaration
Swift
public var count: Int? -
Sets the fill ratio of the iso-surface.
The default fill value of the surface is 1 meaning that they are entirely shaded. On the other hand Applying a
fillratio less than one would allow the creation of openings parallel to the edges.Declaration
Swift
public var fill: Double? -
Sets the surface pattern of the iso-surface 3-D sections.
The default pattern of the surface is
See moreallmeaning that the rest of surface elements would be shaded. The check options (either 1 or 2) could be used to draw half of the squares on the surface. Using various combinations of capitalA,B,C,DandEmay also be used to reduce the number of triangles on the iso-surfaces and creating other patterns of interest.Declaration
Swift
public struct Pattern : OptionSet, Encodable -
Sets the surface pattern of the iso-surface 3-D sections.
The default pattern of the surface is
allmeaning that the rest of surface elements would be shaded. The check options (either 1 or 2) could be used to draw half of the squares on the surface. Using various combinations of capitalA,B,C,DandEmay also be used to reduce the number of triangles on the iso-surfaces and creating other patterns of interest.Declaration
Swift
public var pattern: Pattern? -
Creates
Surfaceobject with specified properties.Declaration
Swift
public init(show: Bool? = nil, count: Int? = nil, fill: Double? = nil, pattern: Pattern? = nil)Parameters
showHides/displays surfaces between minimum and maximum iso-values.
countSets the number of iso-surfaces between minimum and maximum iso-values.
fillSets the fill ratio of the iso-surface.
patternSets the surface pattern of the iso-surface 3-D sections.
View on GitHub
Install in Dash
Surface Structure Reference