Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp
| Show All 38 Lines | PyDoc_STRVAR(CurvePoint_doc, | ||||
| ":class:`Interface1D` is built upon ViewEdges, themselves built upon\n" | ":class:`Interface1D` is built upon ViewEdges, themselves built upon\n" | ||||
| "FEdges. Therefore, a curve is basically a polyline made of a list of\n" | "FEdges. Therefore, a curve is basically a polyline made of a list of\n" | ||||
| ":class:`SVertex` objects. Thus, a CurvePoint is built by linearly\n" | ":class:`SVertex` objects. Thus, a CurvePoint is built by linearly\n" | ||||
| "interpolating two :class:`SVertex` instances. CurvePoint can be used\n" | "interpolating two :class:`SVertex` instances. CurvePoint can be used\n" | ||||
| "as virtual points while querying 0D information along a curve at a\n" | "as virtual points while querying 0D information along a curve at a\n" | ||||
| "given resolution.\n" | "given resolution.\n" | ||||
| "\n" | "\n" | ||||
| ".. method:: __init__()\n" | ".. method:: __init__()\n" | ||||
| "\n" | " __init__(brother)\n" | ||||
| " Default constructor.\n" | " __init__(first_vertex, second_vertex, t2d)\n" | ||||
| "\n" | " __init__(first_point, second_point, t2d)\n" | ||||
| ".. method:: __init__(brother)\n" | "\n" | ||||
| "\n" | " Builds a CurvePoint using the default constructor, copy constructor,\n" | ||||
| " Copy constructor.\n" | " or one of the overloaded constructors. The over loaded constructors\n" | ||||
| " can either take two :class:`SVertex` or two :class:`CurvePoint`\n" | |||||
| " objects and an interpolation parameter\n" | |||||
| "\n" | "\n" | ||||
| " :arg brother: A CurvePoint object.\n" | " :arg brother: A CurvePoint object.\n" | ||||
| " :type brother: :class:`CurvePoint`\n" | " :type brother: :class:`CurvePoint`\n" | ||||
| "\n" | |||||
| ".. method:: __init__(first_vertex, second_vertex, t2d)\n" | |||||
| "\n" | |||||
| " Builds a CurvePoint from two SVertex objects and an interpolation parameter.\n" | |||||
| "\n" | |||||
| " :arg first_vertex: The first SVertex.\n" | " :arg first_vertex: The first SVertex.\n" | ||||
| " :type first_vertex: :class:`SVertex`\n" | " :type first_vertex: :class:`SVertex`\n" | ||||
| " :arg second_vertex: The second SVertex.\n" | " :arg second_vertex: The second SVertex.\n" | ||||
| " :type second_vertex: :class:`SVertex`\n" | " :type second_vertex: :class:`SVertex`\n" | ||||
| " :arg t2d: A 2D interpolation parameter used to linearly interpolate\n" | |||||
| " first_vertex and second_vertex.\n" | |||||
| " :type t2d: float\n" | |||||
| "\n" | |||||
| ".. method:: __init__(first_point, second_point, t2d)\n" | |||||
| "\n" | |||||
| " Builds a CurvePoint from two CurvePoint objects and an interpolation\n" | |||||
| " parameter.\n" | |||||
| "\n" | |||||
| " :arg first_point: The first CurvePoint.\n" | " :arg first_point: The first CurvePoint.\n" | ||||
| " :type first_point: :class:`CurvePoint`\n" | " :type first_point: :class:`CurvePoint`\n" | ||||
| " :arg second_point: The second CurvePoint.\n" | " :arg second_point: The second CurvePoint.\n" | ||||
| " :type second_point: :class:`CurvePoint`\n" | " :type second_point: :class:`CurvePoint`\n" | ||||
| " :arg t2d: The 2D interpolation parameter used to linearly interpolate\n" | " :arg t2d: A 2D interpolation parameter used to linearly interpolate\n" | ||||
| " first_point and second_point.\n" | " first_vertex and second_vertex or first_point and second_point.\n" | ||||
| " :type t2d: float"); | " :type t2d: float\n"); | ||||
| static int CurvePoint_init(BPy_CurvePoint *self, PyObject *args, PyObject *kwds) | static int CurvePoint_init(BPy_CurvePoint *self, PyObject *args, PyObject *kwds) | ||||
| { | { | ||||
| static const char *kwlist_1[] = {"brother", NULL}; | static const char *kwlist_1[] = {"brother", NULL}; | ||||
| static const char *kwlist_2[] = {"first_vertex", "second_vertex", "t2d", NULL}; | static const char *kwlist_2[] = {"first_vertex", "second_vertex", "t2d", NULL}; | ||||
| static const char *kwlist_3[] = {"first_point", "second_point", "t2d", NULL}; | static const char *kwlist_3[] = {"first_point", "second_point", "t2d", NULL}; | ||||
| PyObject *obj1 = 0, *obj2 = 0; | PyObject *obj1 = 0, *obj2 = 0; | ||||
| float t2d; | float t2d; | ||||
| ▲ Show 20 Lines • Show All 208 Lines • Show Last 20 Lines | |||||