View Source
Class MachingCubes
Inheritance
System.Object
MachingCubes
Namespace:EvilDICOM.CV.Geometry.Isosurfaces
Assembly:EvilDICOM.CV.dll
Syntax
public class MachingCubes : object
Methods
View Source
Calculate(Matrix, Double)
Declaration
public static Mesh Calculate(Matrix mat, double isodoseLevel)
Parameters
| Type |
Name |
Description |
| Matrix |
mat |
|
| System.Double |
isodoseLevel |
|
Returns
View Source
Calculate(Int16[], Int32[], Int32, Single[], Double, Int32)
Declaration
public static List<Triangle> Calculate(short[] values, int[] volDim, int volZFull, float[] voxDim, double isoLevel, int offset = 0)
Parameters
| Type |
Name |
Description |
| System.Int16[] |
values |
|
| System.Int32[] |
volDim |
|
| System.Int32 |
volZFull |
|
| System.Single[] |
voxDim |
|
| System.Double |
isoLevel |
|
| System.Int32 |
offset |
|
Returns
View Source
Calculate(Single[], Int32[], Int32, Single[], Double, Int32)
Declaration
public static Mesh Calculate(float[] values, int[] volDim, int volZFull, float[] voxDim, double isoLevel, int offset = 0)
Parameters
| Type |
Name |
Description |
| System.Single[] |
values |
|
| System.Int32[] |
volDim |
|
| System.Int32 |
volZFull |
|
| System.Single[] |
voxDim |
|
| System.Double |
isoLevel |
|
| System.Int32 |
offset |
|
Returns
View Source
Lerp(Single[], Single[], Single)
Linearly interpolates between two vectors
Declaration
public static float[] Lerp(float[] vec1, float[] vec2, float alpha)
Parameters
| Type |
Name |
Description |
| System.Single[] |
vec1 |
vector 1
|
| System.Single[] |
vec2 |
vector 2
|
| System.Single |
alpha |
interpolate parameter
|
Returns
| Type |
Description |
| System.Single[] |
|