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
fill
ratio 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 moreall
meaning 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
,D
andE
may 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
all
meaning 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
,D
andE
may 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
Surface
object with specified properties.Declaration
Swift
public init(show: Bool? = nil, count: Int? = nil, fill: Double? = nil, pattern: Pattern? = nil)
Parameters
show
Hides/displays surfaces between minimum and maximum iso-values.
count
Sets the number of iso-surfaces between minimum and maximum iso-values.
fill
Sets the fill ratio of the iso-surface.
pattern
Sets the surface pattern of the iso-surface 3-D sections.