Blender V5.0
blender::ed::greasepencil::PointTransferData Struct Reference

#include <ED_grease_pencil.hh>

Public Member Functions

bool is_src_end_point () const

Public Attributes

int src_point
int src_next_point
float factor
bool is_src_point
bool is_cut
float opacity

Detailed Description

Structure describing a point in the destination relatively to the source. If a point in the destination is_src_point, then it corresponds exactly to the point at src_point index in the source geometry. Otherwise, it is a linear combination of points at src_point and src_next_point in the source geometry, with the given factor. A point in the destination is a cut if it splits the source curves geometry, meaning it is the first point of a new curve in the destination.

Definition at line 532 of file ED_grease_pencil.hh.

Member Function Documentation

◆ is_src_end_point()

bool blender::ed::greasepencil::PointTransferData::is_src_end_point ( ) const
inline

Source point is the last of the curve.

Definition at line 547 of file ED_grease_pencil.hh.

References is_src_point, src_next_point, and src_point.

Member Data Documentation

◆ factor

float blender::ed::greasepencil::PointTransferData::factor

Definition at line 535 of file ED_grease_pencil.hh.

◆ is_cut

bool blender::ed::greasepencil::PointTransferData::is_cut

Definition at line 537 of file ED_grease_pencil.hh.

◆ is_src_point

bool blender::ed::greasepencil::PointTransferData::is_src_point

Definition at line 536 of file ED_grease_pencil.hh.

Referenced by is_src_end_point().

◆ opacity

float blender::ed::greasepencil::PointTransferData::opacity

Definition at line 542 of file ED_grease_pencil.hh.

◆ src_next_point

int blender::ed::greasepencil::PointTransferData::src_next_point

Definition at line 534 of file ED_grease_pencil.hh.

Referenced by is_src_end_point().

◆ src_point

int blender::ed::greasepencil::PointTransferData::src_point

Definition at line 533 of file ED_grease_pencil.hh.

Referenced by is_src_end_point().


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