8000 renderer : support obb for shapes hit detection · Issue #3290 · thorvg/thorvg · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
renderer : support obb for shapes hit detection #3290
Closed
@hermet

Description

@hermet

An Object-oriented Bounding Box is necessary for accurate hit detection by users. Since thorvg suggest the own scene graph and transformation, We might need to consider supporting an OBB rather than an AABB one.

Result Paint::bounds(float* x, float* y, float* w, float* h, bool transformed = false) const    
-> Result Paint::bounds(Point[4]& pts, bool transformed = false) const           //aabb or obb by transformed

One consideration is thovg should support the api that returns the original boudinding box of a shape. Otherwise, we can remove the current one.

Metadata

Metadata

Assignees

Labels

APIsUpdate / Revise APIsfeatureNew feature additions

Type

No type

Projects

Status

Done 1.0

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0