OLD | NEW |
1 //-***************************************************************************** | 1 //-***************************************************************************** |
2 // | 2 // |
3 // Copyright (c) 2009-2011, | 3 // Copyright (c) 2009-2011, |
4 // Sony Pictures Imageworks, Inc. and | 4 // Sony Pictures Imageworks, Inc. and |
5 // Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. | 5 // Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. |
6 // | 6 // |
7 // All rights reserved. | 7 // All rights reserved. |
8 // | 8 // |
9 // Redistribution and use in source and binary forms, with or without | 9 // Redistribution and use in source and binary forms, with or without |
10 // modification, are permitted provided that the following conditions are | 10 // modification, are permitted provided that the following conditions are |
(...skipping 20 matching lines...) Expand all Loading... |
31 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 31 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
32 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 32 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
33 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 33 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
34 // | 34 // |
35 //-***************************************************************************** | 35 //-***************************************************************************** |
36 | 36 |
37 #include <Alembic/AbcGeom/Tests/NurbsData.h> | 37 #include <Alembic/AbcGeom/Tests/NurbsData.h> |
38 | 38 |
39 //-***************************************************************************** | 39 //-***************************************************************************** |
40 | 40 |
41 const Abc::uint64_t g_nu = 4; | 41 const int32_t g_nu = 4; |
42 const Abc::uint64_t g_nv = 4; | 42 const int32_t g_nv = 4; |
43 const Abc::uint64_t g_uOrder = 4; | 43 const int32_t g_uOrder = 4; |
44 const Abc::uint64_t g_vOrder = 4; | 44 const int32_t g_vOrder = 4; |
45 | 45 |
46 const Abc::float32_t g_uKnot[] = {0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f
}; | 46 const float32_t g_uKnot[] = {0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f}; |
47 const Abc::float32_t g_vKnot[] = {0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f
}; | 47 const float32_t g_vKnot[] = {0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f}; |
48 | 48 |
49 const Abc::uint64_t g_nP = 16; | 49 const int32_t g_nP = 16; |
50 const Abc::float32_t g_P[] = { 0.0f, 0.0f, -3.0f, | 50 const float32_t g_P[] = { 0.0f, 0.0f, -3.0f, |
51 0.0f, 1.0f, -3.0f, | 51 0.0f, 1.0f, -3.0f, |
52 0.0f, 2.0f, -3.0f, | 52 0.0f, 2.0f, -3.0f, |
53 0.0f, 3.0f, -3.0f, | 53 0.0f, 3.0f, -3.0f, |
54 1.0f, 0.0f, -3.0f, | 54 1.0f, 0.0f, -3.0f, |
55 1.0f, 1.0f, 3.0f, | 55 1.0f, 1.0f, 3.0f, |
56 1.0f, 2.0f, 3.0f, | 56 1.0f, 2.0f, 3.0f, |
57 1.0f, 3.0f, -3.0f, | 57 1.0f, 3.0f, -3.0f, |
58 2.0f, 0.0f, -3.0f, | 58 2.0f, 0.0f, -3.0f, |
59 2.0f, 1.0f, 3.0f, | 59 2.0f, 1.0f, 3.0f, |
60 2.0f, 2.0f, 3.0f, | 60 2.0f, 2.0f, 3.0f, |
61 2.0f, 3.0f, -3.0f, | 61 2.0f, 3.0f, -3.0f, |
62 3.0f, 0.0f, -3.0f, | 62 3.0f, 0.0f, -3.0f, |
63 3.0f, 1.0f, -3.0f, | 63 3.0f, 1.0f, -3.0f, |
64 3.0f, 2.0f, -3.0f, | 64 3.0f, 2.0f, -3.0f, |
65 3.0f, 3.0f, -3.0f}; | 65 3.0f, 3.0f, -3.0f}; |
66 | 66 |
67 // trim curve | 67 // trim curve |
68 const Abc::uint64_t g_trim_nLoops = 1; | 68 const int32_t g_trim_nLoops = 1; |
69 const Abc::uint64_t g_trim_nCurves[] = { 1 }; | 69 const int32_t g_trim_nCurves[] = { 1 }; |
70 const Abc::uint64_t g_trim_order[] = { 3 }; | 70 const int32_t g_trim_order[] = { 3 }; |
71 const Abc::float32_t g_trim_knot[] = { 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 2.0f, 2.0f, | 71 const float32_t g_trim_knot[] = { 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 2.0f, 2.0f, |
72 3.0f, 3.0f, 4.0f, 4.0f, 4.0f }; | 72 3.0f, 3.0f, 4.0f, 4.0f, 4.0f }; |
73 const Abc::float32_t g_trim_min[] = { 0.0f }; | 73 const float32_t g_trim_min[] = { 0.0f }; |
74 const Abc::float32_t g_trim_max[] = { 1.0f }; | 74 const float32_t g_trim_max[] = { 1.0f }; |
75 const Abc::uint64_t g_trim_n[] = { 9 }; | 75 const int32_t g_trim_n[] = { 9 }; |
76 const Abc::float32_t g_trim_u[] = { 1.0f, 1.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 1.
0f, 1.0f }; | 76 const float32_t g_trim_u[] = { 1.0f, 1.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1
.0f }; |
77 const Abc::float32_t g_trim_v[] = { 0.5f, 1.0f, 2.0f, 1.0f, 0.5f, 0.0f, 0.0f, 0.
0f, 0.5f }; | 77 const float32_t g_trim_v[] = { 0.5f, 1.0f, 2.0f, 1.0f, 0.5f, 0.0f, 0.0f, 0.0f, 0
.5f }; |
78 const Abc::float32_t g_trim_w[] = { 1.0f, 1.0f, 2.0f, 1.0f, 1.0f, 1.0f, 2.0f, 1.
0f, 1.0f }; | 78 const float32_t g_trim_w[] = { 1.0f, 1.0f, 2.0f, 1.0f, 1.0f, 1.0f, 2.0f, 1.0f, 1
.0f }; |
OLD | NEW |