// File: carlos-urena[P]svg-gen/figures.cpp
// Function: Figure2_ParamCil::Figure2_ParamCil()
Figure2_ParamCil::Figure2_ParamCil()
{
  vec3 observador = vec3(0.9,0.5,1.0),
       lookat     = vec3(0.0,0.0,0.0),
       vup        = vec3(0.0,1.0,0.0);

  cam = Camera( lookat, observador, vup );

  // elipse plana tangente (perp. al eje Z, con eje mayor Y y eje menor X)
  const vec3 ejex = vec3(1.0,0.0,0.0),
             ejey = vec3(0.0,1.0,0.0),
             ejez = vec3(0.0,0.0,1.0);

  Ellipse * pe = new Ellipse( 64, vec3(0.0,0.0,1.0), real(0.6)*ejex, real(1.5)*ejey );

  // esfera con relleno de gradiente radial
  Sphere * pes2D = new Sphere( vec3(0.0,0.0,0.0), 1.0 );

  // region
  SpherePolygon *    pesf  = new SpherePolygon( *pe );
  YCylinderPolygon * pcy   = new YCylinderPolygon( *pe );

  //añadir objetos
  const int cadacuantos = 4 ;

  objetos.add( new Axes( 0.010 ));

  objetos.add( pes2D );
  //addYAxisProjectorsSegments( cadacuantos, *pesf );
  objetos.add( pesf );
  //addSegments( cadacuantos, *pesf, *pcy );
  objetos.add( pcy );

  objetos.add( new YAxisCylinder( cam ) );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x200, %rsp            # imm = 0x200
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x188(%rbp)
callq 0x10a70
movl $0x3f666666, -0x18(%rbp) # imm = 0x3F666666
movl $0x3f000000, -0x1c(%rbp) # imm = 0x3F000000
movl $0x3f800000, -0x20(%rbp) # imm = 0x3F800000
leaq -0x14(%rbp), %rdi
leaq -0x18(%rbp), %rsi
leaq -0x1c(%rbp), %rdx
leaq -0x20(%rbp), %rcx
callq 0x8c30
jmp 0x3a9b
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x40(%rbp)
movl $0x0, -0x44(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
leaq -0x40(%rbp), %rdx
leaq -0x44(%rbp), %rcx
callq 0x8c30
jmp 0x3ac7
movl $0x0, -0x54(%rbp)
movl $0x3f800000, -0x58(%rbp) # imm = 0x3F800000
movl $0x0, -0x5c(%rbp)
leaq -0x50(%rbp), %rdi
leaq -0x54(%rbp), %rsi
leaq -0x58(%rbp), %rdx
leaq -0x5c(%rbp), %rcx
callq 0x8c30
jmp 0x3af3
leaq -0x8c(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq -0x14(%rbp), %rdx
leaq -0x50(%rbp), %rcx
callq 0xa8f0
jmp 0x3b0d
movq -0x188(%rbp), %rax
movups -0x8c(%rbp), %xmm0
movups -0x7c(%rbp), %xmm1
movups -0x6c(%rbp), %xmm2
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
movl $0x3f800000, -0x9c(%rbp) # imm = 0x3F800000
movl $0x0, -0xa0(%rbp)
movl $0x0, -0xa4(%rbp)
leaq -0x98(%rbp), %rdi
leaq -0x9c(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
leaq -0xa4(%rbp), %rcx
callq 0x8c30
jmp 0x3b6f
movl $0x0, -0xb4(%rbp)
movl $0x3f800000, -0xb8(%rbp) # imm = 0x3F800000
movl $0x0, -0xbc(%rbp)
leaq -0xb0(%rbp), %rdi
leaq -0xb4(%rbp), %rsi
leaq -0xb8(%rbp), %rdx
leaq -0xbc(%rbp), %rcx
callq 0x8c30
jmp 0x3bb0
movl $0x0, -0xcc(%rbp)
movl $0x0, -0xd0(%rbp)
movl $0x3f800000, -0xd4(%rbp) # imm = 0x3F800000
leaq -0xc8(%rbp), %rdi
leaq -0xcc(%rbp), %rsi
leaq -0xd0(%rbp), %rdx
leaq -0xd4(%rbp), %rcx
callq 0x8c30
jmp 0x3bf1
movl $0x98, %edi
callq 0x31b0
movq %rax, -0x190(%rbp)
jmp 0x3c04
movl $0x0, -0xf0(%rbp)
movl $0x0, -0xf4(%rbp)
movl $0x3f800000, -0xf8(%rbp) # imm = 0x3F800000
leaq -0xec(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
leaq -0xf4(%rbp), %rdx
leaq -0xf8(%rbp), %rcx
callq 0x8c30
jmp 0x3c45
movss 0x133bf(%rip), %xmm0    # 0x1700c
leaq -0x98(%rbp), %rdi
callq 0x8cf0
movss %xmm1, -0x1a4(%rbp)
movaps %xmm0, -0x1a0(%rbp)
jmp 0x3c6a
movss -0x1a4(%rbp), %xmm0
movaps -0x1a0(%rbp), %xmm1
movlpd %xmm1, -0x118(%rbp)
movss %xmm0, -0x110(%rbp)
movl -0x110(%rbp), %eax
movl %eax, -0x100(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x108(%rbp)
movss 0x13365(%rip), %xmm0    # 0x17010
leaq -0xb0(%rbp), %rdi
callq 0x8cf0
movss %xmm1, -0x1c4(%rbp)
movaps %xmm0, -0x1c0(%rbp)
jmp 0x3cc8
movq -0x190(%rbp), %rdi
movss -0x1c4(%rbp), %xmm0
movaps -0x1c0(%rbp), %xmm1
movlpd %xmm1, -0x138(%rbp)
movss %xmm0, -0x130(%rbp)
movl -0x130(%rbp), %eax
movl %eax, -0x120(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x128(%rbp)
movl -0x120(%rbp), %eax
movl %eax, -0x140(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x148(%rbp)
movsd -0x148(%rbp), %xmm0
movss -0x140(%rbp), %xmm1
movl $0x40, %esi
leaq -0xec(%rbp), %rdx
leaq -0x108(%rbp), %rcx
callq 0xcd30
jmp 0x3d4c
movq -0x190(%rbp), %rax
movq %rax, -0xe0(%rbp)
movl $0x38, %edi
callq 0x31b0
movq %rax, -0x1d0(%rbp)
jmp 0x3d6d
movl $0x0, -0x160(%rbp)
movl $0x0, -0x164(%rbp)
movl $0x0, -0x168(%rbp)
leaq -0x15c(%rbp), %rdi
leaq -0x160(%rbp), %rsi
leaq -0x164(%rbp), %rdx
leaq -0x168(%rbp), %rcx
callq 0x8c30
jmp 0x3dae
movq -0x1d0(%rbp), %rdi
leaq -0x15c(%rbp), %rsi
movss 0x13240(%rip), %xmm0    # 0x17004
callq 0xb960
jmp 0x3dcb
movq -0x1d0(%rbp), %rax
movq %rax, -0x150(%rbp)
movl $0x98, %edi
callq 0x31b0
movq %rax, -0x1d8(%rbp)
jmp 0x3dec
movq -0x1d8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
xorl %edx, %edx
callq 0x11400
jmp 0x3e03
movq -0x1d8(%rbp), %rax
movq %rax, -0x170(%rbp)
movl $0x98, %edi
callq 0x31b0
movq %rax, -0x1e0(%rbp)
jmp 0x3e24
movq -0x1e0(%rbp), %rdi
movq -0xe0(%rbp), %rsi
callq 0x12270
jmp 0x3e39
movq -0x188(%rbp), %rax
movq -0x1e0(%rbp), %rcx
movq %rcx, -0x178(%rbp)
movl $0x4, -0x17c(%rbp)
addq $0x30, %rax
movq %rax, -0x1f0(%rbp)
movl $0x38, %edi
callq 0x31b0
movq %rax, -0x1e8(%rbp)
jmp 0x3e76
movq -0x1e8(%rbp), %rdi
movss 0x13183(%rip), %xmm0    # 0x17008
xorl %esi, %esi
callq 0xebb0
jmp 0x3e8e
movq -0x1e8(%rbp), %rsi
movq -0x1f0(%rbp), %rdi
callq 0xb660
jmp 0x3ea3
movq -0x188(%rbp), %rdi
addq $0x30, %rdi
movq -0x150(%rbp), %rsi
callq 0xb660
jmp 0x3ebc
movq -0x188(%rbp), %rdi
addq $0x30, %rdi
movq -0x170(%rbp), %rsi
callq 0xb660
jmp 0x3ed5
movq -0x188(%rbp), %rdi
addq $0x30, %rdi
movq -0x178(%rbp), %rsi
callq 0xb660
jmp 0x3eee
movq -0x188(%rbp), %rax
addq $0x30, %rax
movq %rax, -0x200(%rbp)
movl $0x38, %edi
callq 0x31b0
movq %rax, -0x1f8(%rbp)
jmp 0x3f13
movq -0x188(%rbp), %rsi
movq -0x1f8(%rbp), %rdi
callq 0xf3c0
jmp 0x3f28
movq -0x1f8(%rbp), %rsi
movq -0x200(%rbp), %rdi
callq 0xb660
jmp 0x3f3d
addq $0x200, %rsp            # imm = 0x200
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x3ff4
movq -0x190(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x3ff4
movq -0x1d0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x3ff4
movq -0x1d8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x3ff4
movq -0x1e0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x3ff4
movq -0x1e8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x3ff4
movq -0x1f8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
movq -0x188(%rbp), %rdi
callq 0x8cc0
movq -0x28(%rbp), %rdi
callq 0x3280
nopl (%rax)