C# Class Ist.BezierPatch

Datei anzeigen Open project: i-saint/OpenSubdivForUnity Class Usage Examples

Public Properties

Property Type Description
cp UnityEngine.Vector3[]

Public Methods

Method Description
Crop ( BezierPatch &dst0, Vector2 &uv0, Vector2 &uv1 ) : void
CropU ( BezierPatch &dst0, Vector2 &uv0, float u0, float u1 ) : void
CropV ( BezierPatch &dst0, Vector2 &uv0, float v0, float v1 ) : void
DrawWireframe ( Color color ) : void
Evaluate ( Vector2 uv ) : Vector3
EvaluateNormal ( Vector2 uv ) : Vector3
GetAABB ( BezierPatchAABB &dst ) : void
GetRawData ( BezierPatchRaw &dst ) : void
OnDrawGizmo ( Color color ) : void
Raycast ( Matrix4x4 &trans, Vector3 orig, Vector3 dir, float zmin, float zmax, float epsilon, BezierPatchHit &hit ) : bool
Raycast ( Vector3 orig, Vector3 dir, float zmin, float zmax, float epsilon, BezierPatchHit &hit ) : bool
SetRawData ( BezierPatchRaw &src ) : void
Split ( BezierPatch &dst0, BezierPatch &dst1, BezierPatch &dst2, BezierPatch &dst3, Vector2 &uv ) : void
SplitU ( BezierPatch &dst0, BezierPatch &dst1, float u ) : void
SplitV ( BezierPatch &dst0, BezierPatch &dst1, float v ) : void
Transform ( Matrix4x4 &mat ) : void

Private Methods

Method Description
DefaultControlPoints ( ) : UnityEngine.Vector3[]
osuBPCrop ( Vector3 &bp, Vector3 &dst0, Vector2 &uv0, Vector2 &uv1 ) : void
osuBPCropU ( Vector3 &bp, Vector3 &dst0, float u0, float u1 ) : void
osuBPCropV ( Vector3 &bp, Vector3 &dst0, float v0, float v1 ) : void
osuBPEvaluate ( Vector3 &bp, Vector2 &uv ) : Vector3
osuBPEvaluateNormal ( Vector3 &bp, Vector2 &uv ) : Vector3
osuBPGetMinMax ( Vector3 &bp, Vector3 &omin, Vector3 &omax, float eps ) : void
osuBPGetRoughNormal ( Vector3 &bp ) : Vector3
osuBPRaycast ( Vector3 &bp, Vector3 &orig, Vector3 &dir, float zmin, float zmax, float epsilon, BezierPatchHit &hit ) : bool
osuBPRaycastWithTransform ( Vector3 &bp, Matrix4x4 &mat, Vector3 &orig, Vector3 &dir, float zmin, float zmax, float epsilon, BezierPatchHit &hit ) : bool
osuBPSplit ( Vector3 &bp, Vector3 &dst0, Vector3 &dst1, Vector3 &dst2, Vector3 &dst3, Vector2 &uv ) : void
osuBPSplitU ( Vector3 &bp, Vector3 &dst0, Vector3 &dst1, float u ) : void
osuBPSplitV ( Vector3 &bp, Vector3 &dst0, Vector3 &dst1, float v ) : void
osuBPTransform ( Vector3 &bp, Matrix4x4 &mat ) : void

Method Details

Crop() public method

public Crop ( BezierPatch &dst0, Vector2 &uv0, Vector2 &uv1 ) : void
dst0 BezierPatch
uv0 UnityEngine.Vector2
uv1 UnityEngine.Vector2
return void

CropU() public method

public CropU ( BezierPatch &dst0, Vector2 &uv0, float u0, float u1 ) : void
dst0 BezierPatch
uv0 UnityEngine.Vector2
u0 float
u1 float
return void

CropV() public method

public CropV ( BezierPatch &dst0, Vector2 &uv0, float v0, float v1 ) : void
dst0 BezierPatch
uv0 UnityEngine.Vector2
v0 float
v1 float
return void

DrawWireframe() public method

public DrawWireframe ( Color color ) : void
color UnityEngine.Color
return void

Evaluate() public method

public Evaluate ( Vector2 uv ) : Vector3
uv UnityEngine.Vector2
return UnityEngine.Vector3

EvaluateNormal() public method

public EvaluateNormal ( Vector2 uv ) : Vector3
uv UnityEngine.Vector2
return UnityEngine.Vector3

GetAABB() public method

public GetAABB ( BezierPatchAABB &dst ) : void
dst BezierPatchAABB
return void

GetRawData() public method

public GetRawData ( BezierPatchRaw &dst ) : void
dst BezierPatchRaw
return void

OnDrawGizmo() public method

public OnDrawGizmo ( Color color ) : void
color UnityEngine.Color
return void

Raycast() public method

public Raycast ( Matrix4x4 &trans, Vector3 orig, Vector3 dir, float zmin, float zmax, float epsilon, BezierPatchHit &hit ) : bool
trans UnityEngine.Matrix4x4
orig UnityEngine.Vector3
dir UnityEngine.Vector3
zmin float
zmax float
epsilon float
hit BezierPatchHit
return bool

Raycast() public method

public Raycast ( Vector3 orig, Vector3 dir, float zmin, float zmax, float epsilon, BezierPatchHit &hit ) : bool
orig UnityEngine.Vector3
dir UnityEngine.Vector3
zmin float
zmax float
epsilon float
hit BezierPatchHit
return bool

SetRawData() public method

public SetRawData ( BezierPatchRaw &src ) : void
src BezierPatchRaw
return void

Split() public method

public Split ( BezierPatch &dst0, BezierPatch &dst1, BezierPatch &dst2, BezierPatch &dst3, Vector2 &uv ) : void
dst0 BezierPatch
dst1 BezierPatch
dst2 BezierPatch
dst3 BezierPatch
uv UnityEngine.Vector2
return void

SplitU() public method

public SplitU ( BezierPatch &dst0, BezierPatch &dst1, float u ) : void
dst0 BezierPatch
dst1 BezierPatch
u float
return void

SplitV() public method

public SplitV ( BezierPatch &dst0, BezierPatch &dst1, float v ) : void
dst0 BezierPatch
dst1 BezierPatch
v float
return void

Transform() public method

public Transform ( Matrix4x4 &mat ) : void
mat UnityEngine.Matrix4x4
return void

Property Details

cp public_oe property

public Vector3[],UnityEngine cp
return UnityEngine.Vector3[]