// File: /workspace/github_cpp_makefile_star2_O1/carlos-urena[P]svg-gen/figures.cpp
// Function: Figure3_ParamConPol::Figure3_ParamConPol()
Figure3_ParamConPol::Figure3_ParamConPol()
{
  vec3 observador = vec3(1.3,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);

  const int nump = 128 ;
  Ellipse * pe = new Ellipse( nump, 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 );
  ZCylinderPolygon * pcz   = new ZCylinderPolygon( *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( pcz );

  // circunferencia delantera del cilindro
  Ellipse * cd = new Ellipse( nump, vec3(0.0,0.0,1.0), ejex, ejey );
  cd->style.draw_filled = false ;
  cd->style.draw_lines = true ;
  cd->style.lines_color = vec3(1.0,0.0,0.0);
  cd->style.lines_width = 0.015 ;

  objetos.add( new JoiningQuads( *pcz, *cd ) );

  objetos.add( cd );

  // cilindro
  objetos.add( new ZAxisCylinder( cam ) );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, %r15
callq 0xa55a
movabsq $0x3f0000003fa66666, %rax # imm = 0x3F0000003FA66666
leaq -0xc0(%rbp), %rdx
movq %rax, (%rdx)
movl $0x3f800000, 0x8(%rdx)  # imm = 0x3F800000
leaq -0xb4(%rbp), %rsi
movq $0x0, (%rsi)
xorl %ebx, %ebx
movl %ebx, 0x8(%rsi)
movabsq $0x3f80000000000000, %r14 # imm = 0x3F80000000000000
leaq -0xa8(%rbp), %rcx
movq %r14, (%rcx)
movl %ebx, 0x8(%rcx)
leaq -0x90(%rbp), %rdi
movq %r15, -0x38(%rbp)
callq 0x6c14
movups -0x90(%rbp), %xmm0
movups -0x80(%rbp), %xmm1
movups -0x70(%rbp), %xmm2
movups %xmm2, 0x20(%r15)
movups %xmm1, 0x10(%r15)
movups %xmm0, (%r15)
movq $0x3f800000, -0x54(%rbp) # imm = 0x3F800000
movl %ebx, -0x4c(%rbp)
movq %r14, -0x48(%rbp)
movl %ebx, -0x40(%rbp)
movl $0x98, %edi
callq 0x31d0
movq %rax, %r14
movq $0x0, -0x9c(%rbp)
movl $0x3f800000, -0x94(%rbp) # imm = 0x3F800000
xorl %eax, %eax
movss 0x955c(%rip), %xmm0     # 0xd010
movss -0x54(%rbp,%rax,4), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, -0x90(%rbp,%rax,4)
incq %rax
cmpq $0x3, %rax
jne 0x3ab4
movsd -0x90(%rbp), %xmm0
movss -0x88(%rbp), %xmm1
movsd %xmm0, -0x60(%rbp)
movss %xmm1, -0x58(%rbp)
xorl %eax, %eax
movss 0x9520(%rip), %xmm0     # 0xd014
movss -0x48(%rbp,%rax,4), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, -0x90(%rbp,%rax,4)
incq %rax
cmpq $0x3, %rax
jne 0x3af4
movsd -0x90(%rbp), %xmm0
movss -0x88(%rbp), %xmm1
leaq -0x9c(%rbp), %rdx
leaq -0x60(%rbp), %rcx
movq %r14, %rdi
movl $0x80, %esi
callq 0x8636
movl $0x38, %edi
callq 0x31d0
movq %rax, %r13
leaq -0x90(%rbp), %rsi
movq $0x0, (%rsi)
movl $0x0, 0x8(%rsi)
movss 0x94a6(%rip), %xmm0     # 0xd008
movq %rax, %rdi
callq 0x76dc
movl $0x98, %edi
callq 0x31d0
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xab36
movl $0x98, %edi
callq 0x31d0
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0xb652
movl $0x38, %edi
callq 0x31d0
movq %rax, %rbx
movss 0x945b(%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 %r13, %rsi
callq 0x7568
movq %r14, %rdi
movq %r12, %rsi
callq 0x7568
movq %r14, %rdi
movq %r15, %rsi
callq 0x7568
movl $0x98, %edi
callq 0x31d0
movq %rax, %r12
leaq -0x90(%rbp), %rdx
movq $0x0, (%rdx)
movl $0x3f800000, 0x8(%rdx)  # imm = 0x3F800000
movsd -0x48(%rbp), %xmm0
leaq -0x54(%rbp), %rcx
xorps %xmm1, %xmm1
movq %rax, %rdi
movl $0x80, %esi
callq 0x8636
movb $0x0, 0x3a(%r12)
movb $0x1, 0x38(%r12)
movq $0x3f800000, 0x20(%r12) # imm = 0x3F800000
movl $0x0, 0x28(%r12)
movl $0x3c75c28f, 0x3c(%r12) # imm = 0x3C75C28F
movl $0x38, %edi
callq 0x31d0
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0xa360
movq %r14, %rdi
movq %rbx, %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 0x9ffa
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7568
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3cbe
jmp 0x3cbe
jmp 0x3cd2
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
jmp 0x3cef
movq %rax, -0x30(%rbp)
movq %r15, %rdi
jmp 0x3cef
jmp 0x3cfc
movq %rax, -0x30(%rbp)
movq %r12, %rdi
jmp 0x3cef
jmp 0x3cfc
movq %rax, -0x30(%rbp)
movq %r13, %rdi
jmp 0x3cef
jmp 0x3cfc
movq %rax, -0x30(%rbp)
movq %r14, %rdi
callq 0x31a0
jmp 0x3d00
jmp 0x3cfc
jmp 0x3cfc
jmp 0x3cfc
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