3DCoat Python API
The 3DCoat Python API documentation.
Loading...
Searching...
No Matches
coat.cPlane Class Reference

Public Member Functions

 __init__ (self)
 
 __init__ (self, float A, float B, float C, float D)
 
 __init__ (self, vec3 t0, vec3 t1, vec3 t2)
 
 __init__ (self, vec3 Pt, vec3 Normal)
 
 __init__ (self, vec3 Normal, float Offset)
 
 SetNormalize (self, float A, float B, float C, float D)
 From normal and distance to origin.
 
vec3 GetNormal (self)
 
 SetNormal (self, vec3 _0)
 
 SetOffset (self, float Offset)
 
float GetOffset (self)
 
vec3 MutableNormal (self)
 
float SetFromPoints (self, vec3 t0, vec3 t1, vec3 t2)
 
 SetFromPointAndNormal (self, vec3 Pt, vec3 Normal)
 
 MoveToPoint (self, vec3 p)
 
float Distance (self, vec3 p)
 
vec3 ProjectPoint (self, vec3 p)
 
vec3 ProjectVector (self, vec3 u)
 
vec3 MirrorPoint (self, vec3 p)
 
vec3 MirrorVector (self, vec3 u)
 
quat MirrorOrient (self, quat q)
 
 FlipNormal (self)
 
bool BelowPlane (self, boundbox B, mat4 T)
 Returns "true" if all vertices of the bounds are on negative side of this plane.
 
any ClassifyPoint (self, vec3 p, float Eps)
 
any ClassifySphere (self, any S, float Eps)
 
bool IsFrontFacingTo (self, vec3 Dir)
 
bool RayIntersection (self, vec3 RayOrig, vec3 RayDir, float pScale=None, vec3 pCross=None)
 
bool SegIntersection (self, vec3 S0, vec3 S1, vec3 pCross=None)
 
bool PlaneIntersection (self, cPlane P, vec3 pCross=None, vec3 pDir=None)
 
float ToPtr (self)
 
float ToPtr (self)
 
vec4 ToVec4 (self)
 
vec4 ToVec4 (self)
 

Constructor & Destructor Documentation

◆ __init__() [1/5]

coat.cPlane.__init__ ( self)

◆ __init__() [2/5]

coat.cPlane.__init__ ( self,
float A,
float B,
float C,
float D )

◆ __init__() [3/5]

coat.cPlane.__init__ ( self,
vec3 t0,
vec3 t1,
vec3 t2 )

◆ __init__() [4/5]

coat.cPlane.__init__ ( self,
vec3 Pt,
vec3 Normal )

◆ __init__() [5/5]

coat.cPlane.__init__ ( self,
vec3 Normal,
float Offset )

Member Function Documentation

◆ BelowPlane()

bool coat.cPlane.BelowPlane ( self,
boundbox B,
mat4 T )

Returns "true" if all vertices of the bounds are on negative side of this plane.

◆ ClassifyPoint()

any coat.cPlane.ClassifyPoint ( self,
vec3 p,
float Eps )

◆ ClassifySphere()

any coat.cPlane.ClassifySphere ( self,
any S,
float Eps )

◆ Distance()

float coat.cPlane.Distance ( self,
vec3 p )

◆ FlipNormal()

coat.cPlane.FlipNormal ( self)

◆ GetNormal()

vec3 coat.cPlane.GetNormal ( self)

◆ GetOffset()

float coat.cPlane.GetOffset ( self)

◆ IsFrontFacingTo()

bool coat.cPlane.IsFrontFacingTo ( self,
vec3 Dir )

◆ MirrorOrient()

quat coat.cPlane.MirrorOrient ( self,
quat q )

◆ MirrorPoint()

vec3 coat.cPlane.MirrorPoint ( self,
vec3 p )

◆ MirrorVector()

vec3 coat.cPlane.MirrorVector ( self,
vec3 u )

◆ MoveToPoint()

coat.cPlane.MoveToPoint ( self,
vec3 p )

◆ MutableNormal()

vec3 coat.cPlane.MutableNormal ( self)

◆ PlaneIntersection()

bool coat.cPlane.PlaneIntersection ( self,
cPlane P,
vec3 pCross = None,
vec3 pDir = None )

◆ ProjectPoint()

vec3 coat.cPlane.ProjectPoint ( self,
vec3 p )

◆ ProjectVector()

vec3 coat.cPlane.ProjectVector ( self,
vec3 u )

◆ RayIntersection()

bool coat.cPlane.RayIntersection ( self,
vec3 RayOrig,
vec3 RayDir,
float pScale = None,
vec3 pCross = None )

◆ SegIntersection()

bool coat.cPlane.SegIntersection ( self,
vec3 S0,
vec3 S1,
vec3 pCross = None )

◆ SetFromPointAndNormal()

coat.cPlane.SetFromPointAndNormal ( self,
vec3 Pt,
vec3 Normal )

◆ SetFromPoints()

float coat.cPlane.SetFromPoints ( self,
vec3 t0,
vec3 t1,
vec3 t2 )

◆ SetNormal()

coat.cPlane.SetNormal ( self,
vec3 _0 )

◆ SetNormalize()

coat.cPlane.SetNormalize ( self,
float A,
float B,
float C,
float D )

From normal and distance to origin.

◆ SetOffset()

coat.cPlane.SetOffset ( self,
float Offset )

◆ ToPtr() [1/2]

float coat.cPlane.ToPtr ( self)

◆ ToPtr() [2/2]

float coat.cPlane.ToPtr ( self)

◆ ToVec4() [1/2]

vec4 coat.cPlane.ToVec4 ( self)

◆ ToVec4() [2/2]

vec4 coat.cPlane.ToVec4 ( self)

The documentation for this class was generated from the following file: