Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/subd/subd_patch.cpp
| Show All 10 Lines | |||||
| * distributed under the License is distributed on an "AS IS" BASIS, | * distributed under the License is distributed on an "AS IS" BASIS, | ||||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| /* Parts adapted from code in the public domain in NVidia Mesh Tools. */ | /* Parts adapted from code in the public domain in NVidia Mesh Tools. */ | ||||
| #include "mesh.h" | #include "render/mesh.h" | ||||
| #include "subd_patch.h" | #include "subd/subd_patch.h" | ||||
| #include "util_math.h" | #include "util/util_math.h" | ||||
| #include "util_types.h" | #include "util/util_types.h" | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| /* De Casteljau Evaluation */ | /* De Casteljau Evaluation */ | ||||
| static void decasteljau_cubic(float3 *P, float3 *dt, float t, const float3 cp[4]) | static void decasteljau_cubic(float3 *P, float3 *dt, float t, const float3 cp[4]) | ||||
| { | { | ||||
| float3 d0 = cp[0] + t*(cp[1] - cp[0]); | float3 d0 = cp[0] + t*(cp[1] - cp[0]); | ||||
| ▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines | |||||