C# Class Isosurface.Sampler

ファイルを表示 Open project: Lin20/isosurface

Public Properties

Property Type Description
Edges ].int[

Private Properties

Property Type Description

Public Methods

Method Description
Abs ( this v ) : Vector3
Blend ( float a, float b, float k ) : float
CappedCylinder ( Vector3 p, Vector2 h ) : float
Circle ( Vector2 pos ) : float
Circle ( Vector2 pos, float radius ) : float
Cuboid ( Vector2 pos ) : float
Cuboid ( Vector3 pos ) : float
Cuboid ( Vector3 pos, Vector3 radius ) : float
Cuboid ( Vector3 pos, float radius ) : float
Cylinder ( Vector3 p, Vector3 h ) : float
GetGradient ( Vector2 v ) : Vector2
GetIntersection ( Vector2 p1, Vector2 p2, float d1, float d2, float isolevel ) : Vector2
GetIntersection ( Vector3 p1, Vector3 p2, float d1, float d2 ) : Vector3
GetNormal ( Vector2 v ) : Vector2
GetNormal ( Vector3 v ) : Vector3
GetNormalSquared ( Vector3 v ) : Vector3
Noise ( Vector2 pos ) : float
Noise ( Vector3 pos ) : float
Noise ( Vector3 pos, int octaves ) : float
ReadData ( RawModel m, int res ) : void
ReadData ( string location, int width, int height, int length, float isolevel, float scale = 1.0f, bool flip = true, int bytes = 1 ) : void
Sample ( Vector2 pos ) : float
Sample ( Vector3 pos, int type ) : float
SetAbs ( this v ) : Vector3
Sphere ( Vector3 pos ) : float
Sphere ( Vector3 pos, float radius ) : float
Sphere ( float x, float y, float z ) : float
SphereR ( Vector3 pos ) : float
Square ( Vector2 pos, float radius ) : float
sdHexPrism ( Vector3 p, Vector2 h ) : float
sdTorus88 ( Vector2 pos ) : float
sdTorusX ( Vector3 p, Vector2 t ) : float
sdTorusY ( Vector3 p, Vector2 t ) : float
sdTorusZ ( Vector3 p, Vector2 t ) : float

Method Details

Abs() public static method

public static Abs ( this v ) : Vector3
v this
return Vector3

Blend() public static method

public static Blend ( float a, float b, float k ) : float
a float
b float
k float
return float

CappedCylinder() public static method

public static CappedCylinder ( Vector3 p, Vector2 h ) : float
p Vector3
h Vector2
return float

Circle() public static method

public static Circle ( Vector2 pos ) : float
pos Vector2
return float

Circle() public static method

public static Circle ( Vector2 pos, float radius ) : float
pos Vector2
radius float
return float

Cuboid() public static method

public static Cuboid ( Vector2 pos ) : float
pos Vector2
return float

Cuboid() public static method

public static Cuboid ( Vector3 pos ) : float
pos Vector3
return float

Cuboid() public static method

public static Cuboid ( Vector3 pos, Vector3 radius ) : float
pos Vector3
radius Vector3
return float

Cuboid() public static method

public static Cuboid ( Vector3 pos, float radius ) : float
pos Vector3
radius float
return float

Cylinder() public static method

public static Cylinder ( Vector3 p, Vector3 h ) : float
p Vector3
h Vector3
return float

GetGradient() public static method

public static GetGradient ( Vector2 v ) : Vector2
v Vector2
return Vector2

GetIntersection() public static method

public static GetIntersection ( Vector2 p1, Vector2 p2, float d1, float d2, float isolevel ) : Vector2
p1 Vector2
p2 Vector2
d1 float
d2 float
isolevel float
return Vector2

GetIntersection() public static method

public static GetIntersection ( Vector3 p1, Vector3 p2, float d1, float d2 ) : Vector3
p1 Vector3
p2 Vector3
d1 float
d2 float
return Vector3

GetNormal() public static method

public static GetNormal ( Vector2 v ) : Vector2
v Vector2
return Vector2

GetNormal() public static method

public static GetNormal ( Vector3 v ) : Vector3
v Vector3
return Vector3

GetNormalSquared() public static method

public static GetNormalSquared ( Vector3 v ) : Vector3
v Vector3
return Vector3

Noise() public static method

public static Noise ( Vector2 pos ) : float
pos Vector2
return float

Noise() public static method

public static Noise ( Vector3 pos ) : float
pos Vector3
return float

Noise() public static method

public static Noise ( Vector3 pos, int octaves ) : float
pos Vector3
octaves int
return float

ReadData() public static method

public static ReadData ( RawModel m, int res ) : void
m RawModel
res int
return void

ReadData() public static method

public static ReadData ( string location, int width, int height, int length, float isolevel, float scale = 1.0f, bool flip = true, int bytes = 1 ) : void
location string
width int
height int
length int
isolevel float
scale float
flip bool
bytes int
return void

Sample() public static method

public static Sample ( Vector2 pos ) : float
pos Vector2
return float

Sample() public static method

public static Sample ( Vector3 pos, int type ) : float
pos Vector3
type int
return float

SetAbs() public static method

public static SetAbs ( this v ) : Vector3
v this
return Vector3

Sphere() public static method

public static Sphere ( Vector3 pos ) : float
pos Vector3
return float

Sphere() public static method

public static Sphere ( Vector3 pos, float radius ) : float
pos Vector3
radius float
return float

Sphere() public static method

public static Sphere ( float x, float y, float z ) : float
x float
y float
z float
return float

SphereR() public static method

public static SphereR ( Vector3 pos ) : float
pos Vector3
return float

Square() public static method

public static Square ( Vector2 pos, float radius ) : float
pos Vector2
radius float
return float

sdHexPrism() public static method

public static sdHexPrism ( Vector3 p, Vector2 h ) : float
p Vector3
h Vector2
return float

sdTorus88() public static method

public static sdTorus88 ( Vector2 pos ) : float
pos Vector2
return float

sdTorusX() public static method

public static sdTorusX ( Vector3 p, Vector2 t ) : float
p Vector3
t Vector2
return float

sdTorusY() public static method

public static sdTorusY ( Vector3 p, Vector2 t ) : float
p Vector3
t Vector2
return float

sdTorusZ() public static method

public static sdTorusZ ( Vector3 p, Vector2 t ) : float
p Vector3
t Vector2
return float

Property Details

Edges public_oe static_oe property

public static int[,] Edges
return ].int[