// File: /workspace/github_cpp_makefile_star2_O2/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, %r14
callq 0x8796
movabsq $0x3f0000003fa66666, %rax # imm = 0x3F0000003FA66666
leaq -0xa8(%rbp), %rsi
andq $0x0, (%rsi)
leaq -0xb4(%rbp), %rdx
andl $0x0, 0x8(%rsi)
movq %rax, (%rdx)
movl $0x3f800000, 0x8(%rdx)  # imm = 0x3F800000
movabsq $0x3f80000000000000, %rbx # imm = 0x3F80000000000000
leaq -0x9c(%rbp), %rcx
movq %rbx, (%rcx)
andl $0x0, 0x8(%rcx)
leaq -0x90(%rbp), %rdi
movq %r14, -0x38(%rbp)
callq 0x5f0c
movups -0x90(%rbp), %xmm0
movups -0x80(%rbp), %xmm1
movups -0x70(%rbp), %xmm2
movups %xmm2, 0x20(%r14)
movups %xmm1, 0x10(%r14)
movups %xmm0, (%r14)
movq $0x3f800000, -0x90(%rbp) # imm = 0x3F800000
andl $0x0, -0x88(%rbp)
movq %rbx, -0x48(%rbp)
andl $0x0, -0x40(%rbp)
movl $0x98, %edi
callq 0x31b0
movq %rax, %r14
andq $0x0, -0x54(%rbp)
movl $0x3f800000, -0x4c(%rbp) # imm = 0x3F800000
movss 0x7694(%rip), %xmm0     # 0xb010
leaq -0x90(%rbp), %rdi
callq 0x52f1
movlps %xmm0, -0x60(%rbp)
movss %xmm1, -0x58(%rbp)
movss 0x767b(%rip), %xmm0     # 0xb014
leaq -0x48(%rbp), %rdi
callq 0x52f1
leaq -0x54(%rbp), %rdx
leaq -0x60(%rbp), %rcx
movq %r14, %rdi
movl $0x80, %esi
callq 0x70d6
pushq $0x38
popq %rdi
callq 0x31b0
movq %rax, %r13
leaq -0x54(%rbp), %rsi
andq $0x0, (%rsi)
andl $0x0, 0x8(%rsi)
movss 0x7632(%rip), %xmm0     # 0xb008
movq %rax, %rdi
callq 0x67a0
movl $0x98, %edi
callq 0x31b0
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x8b4a
movl $0x98, %edi
callq 0x31b0
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x920a
pushq $0x38
popq %rdi
callq 0x31b0
movq %rax, %rbx
movss 0x75e9(%rip), %xmm0     # 0xb00c
movq %rax, %rdi
xorl %esi, %esi
callq 0x7ca0
movq -0x38(%rbp), %rax
leaq 0x30(%rax), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x664c
movq %r14, %rdi
movq %r13, %rsi
callq 0x664c
movq %r14, %rdi
movq %r12, %rsi
callq 0x664c
movq %r14, %rdi
movq %r15, %rsi
callq 0x664c
movl $0x98, %edi
callq 0x31b0
movq %rax, %r12
leaq -0x54(%rbp), %rdx
andq $0x0, (%rdx)
movl $0x3f800000, 0x8(%rdx)  # imm = 0x3F800000
movsd -0x48(%rbp), %xmm0
movss -0x40(%rbp), %xmm1
leaq -0x90(%rbp), %rcx
movq %rax, %rdi
movl $0x80, %esi
callq 0x70d6
movb $0x0, 0x3a(%r12)
movb $0x1, 0x38(%r12)
movq $0x3f800000, 0x20(%r12) # imm = 0x3F800000
andl $0x0, 0x28(%r12)
movl $0x3c75c28f, 0x3c(%r12) # imm = 0x3C75C28F
pushq $0x38
popq %rdi
callq 0x31b0
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x85c8
movq %r14, %rdi
movq %rbx, %rsi
callq 0x664c
movq %r14, %rdi
movq %r12, %rsi
callq 0x664c
pushq $0x38
popq %rdi
callq 0x31b0
movq %rax, %rbx
movq %rax, %rdi
movq -0x38(%rbp), %rsi
callq 0x830c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x664c
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3b28
jmp 0x3b28
jmp 0x3b3c
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
jmp 0x3b5d
movq %rax, -0x30(%rbp)
movq %r15, %rdi
jmp 0x3b5d
jmp 0x3b66
movq %rax, -0x30(%rbp)
movq %r12, %rdi
jmp 0x3b5d
jmp 0x3b66
movq %rax, -0x30(%rbp)
movq %r13, %rdi
jmp 0x3b5d
jmp 0x3b66
jmp 0x3b66
jmp 0x3b66
movq %rax, -0x30(%rbp)
movq %r14, %rdi
callq 0x3190
jmp 0x3b6a
jmp 0x3b66
movq %rax, -0x30(%rbp)
movq -0x38(%rbp), %rdi
callq 0x53e4
movq -0x30(%rbp), %rdi
callq 0x3250