Freestyle: Removed SVertex _curvatureFredo and _directionFredo and their getter/setter methods..
These data elements are undocumented and of little use. For now they are commented out in the implementation in favor of less memory consumption, and a very limited support for these data components in the Python API was just removed (should be easy to recover).
This commit is contained in:
@@ -199,26 +199,12 @@ static int CurvePoint_t2d_set(BPy_CurvePoint *self, PyObject *value, void *UNUSE
|
||||
return 0;
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(CurvePoint_curvature_fredo_doc,
|
||||
"The angle (Fredo's curvature) in radians.\n"
|
||||
"\n"
|
||||
":type: float");
|
||||
|
||||
static PyObject *CurvePoint_curvature_fredo_get(BPy_CurvePoint *self, void *UNUSED(closure))
|
||||
{
|
||||
return PyFloat_FromDouble(self->cp->curvatureFredo());
|
||||
}
|
||||
|
||||
// todo - CurvePoint.directionFredo()
|
||||
|
||||
static PyGetSetDef BPy_CurvePoint_getseters[] = {
|
||||
{(char *)"first_svertex", (getter)CurvePoint_first_svertex_get, (setter)CurvePoint_first_svertex_set,
|
||||
(char *)CurvePoint_first_svertex_doc, NULL},
|
||||
{(char *)"second_svertex", (getter)CurvePoint_second_svertex_get, (setter)CurvePoint_second_svertex_set,
|
||||
(char *)CurvePoint_second_svertex_doc, NULL},
|
||||
{(char *)"t2d", (getter)CurvePoint_t2d_get, (setter)CurvePoint_t2d_set, (char *)CurvePoint_t2d_doc, NULL},
|
||||
{(char *)"curvature_fredo", (getter)CurvePoint_curvature_fredo_get, (setter)NULL,
|
||||
(char *)CurvePoint_curvature_fredo_doc, NULL},
|
||||
{NULL, NULL, NULL, NULL, NULL} /* Sentinel */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user