Changeset View
Changeset View
Standalone View
Standalone View
source/blender/alembic/intern/abc_curves.cc
| Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | else if ((nurbs->flagu & CU_NURB_CYCLIC) != 0) { | ||||
| for (int i = 0; i < nurbs->orderu; ++i) { | for (int i = 0; i < nurbs->orderu; ++i) { | ||||
| verts.push_back(verts[i]); | verts.push_back(verts[i]); | ||||
| } | } | ||||
| } | } | ||||
| if (nurbs->knotsu != NULL) { | if (nurbs->knotsu != NULL) { | ||||
| const size_t num_knots = KNOTSU(nurbs); | const size_t num_knots = KNOTSU(nurbs); | ||||
| /* Add an extra knot at the beggining and end of the array since most apps | /* Add an extra knot at the beginning and end of the array since most apps | ||||
| * require/expect them. */ | * require/expect them. */ | ||||
| knots.resize(num_knots + 2); | knots.resize(num_knots + 2); | ||||
| for (int i = 0; i < num_knots; ++i) { | for (int i = 0; i < num_knots; ++i) { | ||||
| knots[i + 1] = nurbs->knotsu[i]; | knots[i + 1] = nurbs->knotsu[i]; | ||||
| } | } | ||||
| if ((nurbs->flagu & CU_NURB_CYCLIC) != 0) { | if ((nurbs->flagu & CU_NURB_CYCLIC) != 0) { | ||||
| ▲ Show 20 Lines • Show All 288 Lines • Show Last 20 Lines | |||||