Chipmunk2D Pro API Reference
7.0.1
|
A sampler is an object that provides a basis function to build shapes from. More...
#import <ChipmunkAutoGeometry.h>
Inherits NSObject.
Inherited by ChipmunkBitmapSampler, ChipmunkBlockSampler, and ChipmunkPointCloudSampler.
Instance Methods | |
(id) | - initWithSamplingFunction: |
Designated initializer. | |
(cpFloat) | - sample: |
Sample at a specific point. | |
(ChipmunkPolylineSet *) | - march:xSamples:ySamples:hard: |
March a certain area of the sampler. | |
Properties | |
cpFloat | marchThreshold |
The threshold passed to the cpMarch*() functions. More... | |
cpMarchSampleFunc | sampleFunc |
Get the primitive cpMarchSampleFunc used by this sampler. | |
A sampler is an object that provides a basis function to build shapes from.
This can be from a block of pixel data (loaded from a file, or dumped from the screen), or even a mathematical function such as Perlin noise.
|
readwritenonatomicassign |
The threshold passed to the cpMarch*() functions.
The value of the contour you want to extract.