Grasshopper API
GH_SamplingSphereSampleSphere Method (Sphere, GH_MemoryBitmap) |
Sample a sphere with a UV texture and return a bitmap of sampled values.
Namespace: Grasshopper.GUI
Assembly: Grasshopper (in Grasshopper.dll)
public Bitmap SampleSphere( Sphere sphere, GH_MemoryBitmap texture )
Public Function SampleSphere ( sphere As Sphere, texture As GH_MemoryBitmap ) As Bitmap
Parameters
- sphere
- Type: Sphere
Sphere to sample, it should be centered on the world origin. - texture
- Type: Grasshopper.KernelGH_MemoryBitmap
Texture to sample, the texture will not be modified.
Return Value
Type: BitmapA bitmap of Size x Size pixels.