Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp
| Context not available. | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| PyDoc_STRVAR(CurvePoint_fedge_doc, | |||||
| "Gets the FEdge for the two SVertices that given CurvePoints consists out of.\n" | |||||
| "A shortcut for CurvePoint.first_svertex.get_fedge(CurvePoint.second_svertex).\n" | |||||
| "\n" | |||||
| ":type: :class:`FEdge`"); | |||||
| static PyObject *CurvePoint_fedge_get(BPy_CurvePoint *self, void *UNUSED(closure)) | |||||
| { | |||||
| SVertex *A = self->cp->A(); | |||||
| Interface0D *B = (Interface0D *)self->cp->B(); | |||||
| return Any_BPy_Interface1D_from_Interface1D(*(A->getFEdge(*B))); | |||||
| } | |||||
| PyDoc_STRVAR(CurvePoint_t2d_doc, | PyDoc_STRVAR(CurvePoint_t2d_doc, | ||||
| "The 2D interpolation parameter.\n" | "The 2D interpolation parameter.\n" | ||||
| "\n" | "\n" | ||||
| Context not available. | |||||
| (char *)CurvePoint_first_svertex_doc, NULL}, | (char *)CurvePoint_first_svertex_doc, NULL}, | ||||
| {(char *)"second_svertex", (getter)CurvePoint_second_svertex_get, (setter)CurvePoint_second_svertex_set, | {(char *)"second_svertex", (getter)CurvePoint_second_svertex_get, (setter)CurvePoint_second_svertex_set, | ||||
| (char *)CurvePoint_second_svertex_doc, NULL}, | (char *)CurvePoint_second_svertex_doc, NULL}, | ||||
| {(char *)"fedge", (getter)CurvePoint_fedge_get, NULL, | |||||
| CurvePoint_fedge_doc, NULL}, | |||||
| {(char *)"t2d", (getter)CurvePoint_t2d_get, (setter)CurvePoint_t2d_set, (char *)CurvePoint_t2d_doc, NULL}, | {(char *)"t2d", (getter)CurvePoint_t2d_get, (setter)CurvePoint_t2d_set, (char *)CurvePoint_t2d_doc, NULL}, | ||||
| {NULL, NULL, NULL, NULL, NULL} /* Sentinel */ | {NULL, NULL, NULL, NULL, NULL} /* Sentinel */ | ||||
| }; | }; | ||||
| Context not available. | |||||