Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)

Enlighten API 3.10 Documentation
Results will update as you type.
  • class Geo RtMesh
  • class Geo RtMeshGroup
  • class Geo ScopedTickCounter
  • class Geo ScopedTimer
  • class Geo SHCoeff
  • class Geo SimpleRNG
  • class Geo TerminalProvider
  • class Geo TextureWriter
  • class Geo TreeNode
  • class Geo TriGroupSelection
  • class Geo TxtProgressBar
  • namespace Geo Iff
  • namespace Geo PathUtils
  • namespace Geo Version
  • struct Geo ArrayRange
  • struct Geo AtlasMeshChartingFlags
  • struct Geo AtlasMeshTriangle
  • struct Geo AtlasMeshTriangleCorner
  • struct Geo AtlasMeshVertex
  • struct Geo AtlasMeshVertexSplitResult
  • struct Geo BboxEdge
  • struct Geo BboxFace
  • struct Geo ClippedRay
  • struct Geo DebugLine
  • struct Geo eWindingOrder
  • struct Geo FixedSizeArray
  • struct Geo GeoAtomic
  • struct Geo GeoError
  • struct Geo GeoFixedPoolList
  • struct Geo GeoFixedPoolMap
  • struct Geo GeoPoint2
  • struct Geo GeoPoint2D
  • struct Geo GeoPoint3
  • struct Geo GeoPoint3D
  • struct Geo GeoRGBXTextureElement
  • struct Geo GeoVector3
  • struct Geo GeoVector4
  • struct Geo InitRayTracing
  • struct Geo Matrix4x4
  • struct Geo PerformanceBlock
  • struct Geo RastFragment
  • struct Geo RastTri
  • struct Geo RastVert
  • struct Geo Rayf
  • struct Geo ScopeStartStop
  • struct Geo Statistics
  • struct Geo TypeInfo
  • struct Geo VectorD
  • struct Geo WriteRangePolicy
  • struct Geo ZeroedPadding
  • union Geo GeoFloat3SE
  • union Geo GeoFloatAsBits
    Calendars

You‘re viewing this with anonymous access, so some content might be blocked.
/
struct Geo RastFragment

    This is the documentation for Enlighten.

    struct Geo RastFragment

    Nov 21, 2019

    struct Geo::RastFragment

    stores a fragment of a triangle i.e. a triangle clipped to a pixel box

    Variables

    Name Description
    Geo::u32 m_NumPts

    number of points in fragment polygon

    const RastVert * m_Points

    fragment polygon points; coordinates are in [0,1]x[0,1] i.e.

    const RastTri * m_Tri

    reference to triangle that owns this fragment

    Geo::s32 m_X

    integer coordinates of (top-left of) pixel

    Geo::s32 m_Y

    integer coordinates of (top-left of) pixel

    Functions

    Name Description
    GetArea()

    get signed area of fragment polygon; it's flipped if area < 0

    GetBarycentricCoords(float, float, float &, float &)

    get barycentric coordinates of a point in the pixel

    GetCentroid(RastVert &)

    get centroid of fragment polygon (average of vertex positions)

    IsPtInPoly(float, float)

    is a given point in the fragment polygon?


    float Geo::RastFragment::GetArea


    public: float GetArea() const


    get signed area of fragment polygon; it's flipped if area < 0


    void Geo::RastFragment::GetBarycentricCoords


    public: void GetBarycentricCoords
    (
        float x,
        float y,
        float & u,
        float & v
    ) const


    get barycentric coordinates of a point in the pixel


    void Geo::RastFragment::GetCentroid


    public: void GetCentroid
    (
        RastVert & out
    ) const


    get centroid of fragment polygon (average of vertex positions)


    bool Geo::RastFragment::IsPtInPoly


    public: bool IsPtInPoly
    (
        float x,
        float y
    ) const


    is a given point in the fragment polygon?

    , multiple selections available,
    {"serverDuration": 10, "requestCorrelationId": "1158cbbdd35c434caeac4479e839322d"}