// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %r15
callq 0xa55a
movabsq $0x3f0000003f666666, %rax # imm = 0x3F0000003F666666
leaq -0xc4(%rbp), %rdx
movq %rax, (%rdx)
movl $0x3f800000, 0x8(%rdx)  # imm = 0x3F800000
leaq -0xb8(%rbp), %rsi
movq $0x0, (%rsi)
xorl %ebx, %ebx
movl %ebx, 0x8(%rsi)
movabsq $0x3f80000000000000, %r14 # imm = 0x3F80000000000000
leaq -0xac(%rbp), %rcx
movq %r14, (%rcx)
movl %ebx, 0x8(%rcx)
leaq -0xa0(%rbp), %rdi
movq %r15, -0x38(%rbp)
callq 0x6c14
movups -0xa0(%rbp), %xmm0
movups -0x90(%rbp), %xmm1
movups -0x80(%rbp), %xmm2
movups %xmm2, 0x20(%r15)
movups %xmm1, 0x10(%r15)
movups %xmm0, (%r15)
movq $0x3f800000, -0x6c(%rbp) # imm = 0x3F800000
movl %ebx, -0x64(%rbp)
movq %r14, -0x60(%rbp)
movl %ebx, -0x58(%rbp)
movl $0x98, %edi
callq 0x31d0
movq %rax, %r14
movq $0x0, -0x54(%rbp)
movl $0x3f800000, -0x4c(%rbp) # imm = 0x3F800000
xorl %eax, %eax
movss 0x97fb(%rip), %xmm0     # 0xd010
movss -0x6c(%rbp,%rax,4), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, -0xa0(%rbp,%rax,4)
incq %rax
cmpq $0x3, %rax
jne 0x3815
movsd -0xa0(%rbp), %xmm0
movss -0x98(%rbp), %xmm1
movsd %xmm0, -0x48(%rbp)
movss %xmm1, -0x40(%rbp)
xorl %eax, %eax
movss 0x97bf(%rip), %xmm0     # 0xd014
movss -0x60(%rbp,%rax,4), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, -0xa0(%rbp,%rax,4)
incq %rax
cmpq $0x3, %rax
jne 0x3855
movsd -0xa0(%rbp), %xmm0
movss -0x98(%rbp), %xmm1
leaq -0x54(%rbp), %rdx
leaq -0x48(%rbp), %rcx
movq %r14, %rdi
movl $0x40, %esi
callq 0x8636
movl $0x38, %edi
callq 0x31d0
movq %rax, %r15
leaq -0xa0(%rbp), %rsi
movq $0x0, (%rsi)
movl $0x0, 0x8(%rsi)
movss 0x9748(%rip), %xmm0     # 0xd008
movq %rax, %rdi
callq 0x76dc
movl $0x98, %edi
callq 0x31d0
movq %rax, %r13
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xab36
movl $0x98, %edi
callq 0x31d0
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0xb452
movl $0x38, %edi
callq 0x31d0
movq %rax, %rbx
movss 0x96fd(%rip), %xmm0     # 0xd00c
movq %rax, %rdi
xorl %esi, %esi
callq 0x987a
movq -0x38(%rbp), %rax
leaq 0x30(%rax), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7568
movq %r14, %rdi
movq %r15, %rsi
callq 0x7568
movq %r14, %rdi
movq %r13, %rsi
callq 0x7568
movq %r14, %rdi
movq %r12, %rsi
callq 0x7568
movl $0x38, %edi
callq 0x31d0
movq %rax, %rbx
movq %rax, %rdi
movq -0x38(%rbp), %rsi
callq 0x9c9e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7568
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3985
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
jmp 0x39b6
movq %rax, -0x30(%rbp)
movq %r12, %rdi
jmp 0x39b6
jmp 0x39c1
movq %rax, -0x30(%rbp)
movq %r13, %rdi
jmp 0x39b6
jmp 0x39c1
movq %rax, -0x30(%rbp)
movq %r15, %rdi
jmp 0x39b6
jmp 0x39c1
movq %rax, -0x30(%rbp)
movq %r14, %rdi
callq 0x31a0
jmp 0x39c5
jmp 0x39c1
jmp 0x39c1
movq %rax, -0x30(%rbp)
movq -0x38(%rbp), %rbx
leaq 0x70(%rbx), %rdi
callq 0x5d78
addq $0x30, %rbx
movq %rbx, %rdi
callq 0xbe42
movq -0x30(%rbp), %rdi
callq 0x32b0
nop