Skip to main content

Module vitem

Module vitem 

Source
Expand description

Quadratic Bezier Concatenated Item

VItem itself is composed with 3d bezier path segments, but when ranim renders VItem, it assumes that all points are in the same plane to calculate depth information. Which means that ranim actually renders a projection of the VItem onto a plane.

The projection target plane has the initial basis and normal defined as (DVec3::X, DVec3::Y) and DVec3::Z respectively, and it contains the first point of the VItem.

So the normal way to use a VItem is to make sure that all points are in the same plane, at this time the projection is equivalent to the VItem itself. Or you may break this, and let ranim renders the projection of it.

Modules§

geometry
Geometry items
renderrender
Render-world components and GPU implementation. Render-world data and GPU implementation for vitem items.
svg
Svg item
texttypst
Simple text items
typsttypst
Typst items

Structs§

VItem
A vectorized item.
VItemPluginrender
Installs vector-item extraction, GPU preparation, and rendering.

Constants§

DEFAULT_STROKE_WIDTH
Default stroke width