GH_SamplingSphere

public class GH_SamplingSphere
Represents a coloured sphere that can be sampled at various rotations.

Constructors

GH_SamplingSphere

#
public GH_SamplingSphere(int size)
size (int)

Properties

SampleCount

#
public int SampleCount { get; }
Gets the total number of samples contained in this sampling grid.

Size

#
public int Size { get; }
Gets the size of this sample grid.

Methods

SampleSphere

#
public Bitmap SampleSphere(Sphere sphere, GH_MemoryBitmap texture)
Sample a sphere with a UV texture and return a bitmap of sampled values.
sphere (Sphere)Sphere to sample, it should be centered on the world origin.
texture (GH_MemoryBitmap)Texture to sample, the texture will not be modified.
A bitmap of Size x Size pixels.

SampleSphere

#
public Point2d[,] SampleSphere(Sphere sphere)
Sample the UV locations of a sphere. The sphere should be centered on the world origin.
sphere (Sphere)Sphere to sample.
A two-dimensional array of Sphere UV locations, one for each sample point.