46 lines
1.8 KiB
C++
Executable File
46 lines
1.8 KiB
C++
Executable File
// ======================================================================== //
|
|
// Copyright 2009-2014 Intel Corporation //
|
|
// //
|
|
// Licensed under the Apache License, Version 2.0 (the "License"); //
|
|
// you may not use this file except in compliance with the License. //
|
|
// You may obtain a copy of the License at //
|
|
// //
|
|
// http://www.apache.org/licenses/LICENSE-2.0 //
|
|
// //
|
|
// Unless required by applicable law or agreed to in writing, software //
|
|
// distributed under the License is distributed on an "AS IS" BASIS, //
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. //
|
|
// See the License for the specific language governing permissions and //
|
|
// limitations under the License. //
|
|
// ======================================================================== //
|
|
|
|
#pragma once
|
|
|
|
#include "primitive.h"
|
|
#include "common/scene_subdiv_mesh.h"
|
|
#include "common/subdiv/bspline_patch.h"
|
|
#include "common/subdiv/gregory_patch.h"
|
|
#include "common/subdiv/tessellation.h"
|
|
#include "common/subdiv/subdivpatch1base.h"
|
|
#include "bicubic_bezier_patch.h"
|
|
|
|
namespace embree
|
|
{
|
|
|
|
struct __aligned(64) SubdivPatch1 : public SubdivPatch1Base
|
|
{
|
|
SubdivPatch1 (const CatmullClarkPatch &ipatch,
|
|
const unsigned int geomID,
|
|
const unsigned int primID,
|
|
const SubdivMesh *const mesh,
|
|
const Vec2f uv[4],
|
|
const float edge_level[4])
|
|
: SubdivPatch1Base(ipatch,geomID,primID,mesh,uv,edge_level)
|
|
{
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|