C# 클래스 Ist.BezierPatch

파일 보기 프로젝트 열기: i-saint/OpenSubdivForUnity 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
cp UnityEngine.Vector3[]

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Crop() 공개 메소드

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

CropU() 공개 메소드

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

CropV() 공개 메소드

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

DrawWireframe() 공개 메소드

public DrawWireframe ( Color color ) : void
color UnityEngine.Color
리턴 void

Evaluate() 공개 메소드

public Evaluate ( Vector2 uv ) : Vector3
uv UnityEngine.Vector2
리턴 UnityEngine.Vector3

EvaluateNormal() 공개 메소드

public EvaluateNormal ( Vector2 uv ) : Vector3
uv UnityEngine.Vector2
리턴 UnityEngine.Vector3

GetAABB() 공개 메소드

public GetAABB ( BezierPatchAABB &dst ) : void
dst BezierPatchAABB
리턴 void

GetRawData() 공개 메소드

public GetRawData ( BezierPatchRaw &dst ) : void
dst BezierPatchRaw
리턴 void

OnDrawGizmo() 공개 메소드

public OnDrawGizmo ( Color color ) : void
color UnityEngine.Color
리턴 void

Raycast() 공개 메소드

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
리턴 bool

Raycast() 공개 메소드

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
리턴 bool

SetRawData() 공개 메소드

public SetRawData ( BezierPatchRaw &src ) : void
src BezierPatchRaw
리턴 void

Split() 공개 메소드

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

SplitU() 공개 메소드

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

SplitV() 공개 메소드

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

Transform() 공개 메소드

public Transform ( Matrix4x4 &mat ) : void
mat UnityEngine.Matrix4x4
리턴 void

프로퍼티 상세

cp 공개적으로 프로퍼티

public Vector3[],UnityEngine cp
리턴 UnityEngine.Vector3[]