File: oriented_curve1.xml

package info (click to toggle)
embree 4.3.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 100,656 kB
  • sloc: cpp: 228,918; xml: 40,944; ansic: 2,685; python: 812; sh: 635; makefile: 228; csh: 42
file content (71 lines) | stat: -rw-r--r-- 1,436 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0"?>

<scene>
  <Group>
    <PerspectiveCamera name="camera0" from="-9.333145142 2.932261944 -3.125504494" to="-10.18498802 2.06202507 -5.499505043" up="0 1 0" fov="95"/>

     <DirectionalLight>
      <AffineSpace>
        1 0 0 0
        0 0 -1 0
        0 1 -0.4 0
      </AffineSpace>
      <E>3 3 3</E>
     </DirectionalLight>
     
    <TriangleMesh>
      <positions>
        -20 0 -20
        -20 0 +20
        +20 0 +20
        +20 0 -20
      </positions>
      <triangles>
        0 2 1
        0 3 2
      </triangles>
      <material>
        <code>"OBJ"</code>
        <parameters>
          <float3 name="Kd">0.8 0.8 0.9</float3>
        </parameters>
      </material>
    </TriangleMesh>

    <!-- twisted varying radius loop -->
    <Transform>
      <AffineSpace translate="-10 1 -4"/>
      
      <Curves basis="bezier" type="normal_oriented" tessellation_rate="16">
        
        <positions>
          -2 0 0 0.1
          5 3 0 0.2
          -5 3 0 0.2
          2 0 -1 0.1
        </positions>

        <normals>
          0 1 0
          0 0 1
          0 0 0
          0 0 0
        </normals>
        
        <indices>
          0
        </indices>
        
        <material>
          <code>"OBJ"</code>
          <parameters>
            <float3 name="Kd">1 0 0</float3>
          </parameters>
        </material>
        
      </Curves>
    </Transform>

    
  </Group>
</scene>