// File: 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
subq $0x280, %rsp            # imm = 0x280
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x1e0(%rbp)
callq 0x10a70
movl $0x3fa66666, -0x18(%rbp) # imm = 0x3FA66666
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 0x405b
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 0x4087
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 0x40b3
leaq -0x8c(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq -0x14(%rbp), %rdx
leaq -0x50(%rbp), %rcx
callq 0xa8f0
jmp 0x40cd
movq -0x1e0(%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 0x412f
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 0x4170
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 0x41b1
movl $0x80, -0xd8(%rbp)
movl $0x98, %edi
callq 0x31b0
movq %rax, -0x1e8(%rbp)
jmp 0x41ce
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 0x420f
movss 0x12df5(%rip), %xmm0    # 0x1700c
leaq -0x98(%rbp), %rdi
callq 0x8cf0
movss %xmm1, -0x204(%rbp)
movaps %xmm0, -0x200(%rbp)
jmp 0x4234
movss -0x204(%rbp), %xmm0
movaps -0x200(%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 0x12d9b(%rip), %xmm0    # 0x17010
leaq -0xb0(%rbp), %rdi
callq 0x8cf0
movss %xmm1, -0x224(%rbp)
movaps %xmm0, -0x220(%rbp)
jmp 0x4292
movq -0x1e8(%rbp), %rdi
movss -0x224(%rbp), %xmm0
movaps -0x220(%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 $0x80, %esi
leaq -0xec(%rbp), %rdx
leaq -0x108(%rbp), %rcx
callq 0xcd30
jmp 0x4316
movq -0x1e8(%rbp), %rax
movq %rax, -0xe0(%rbp)
movl $0x38, %edi
callq 0x31b0
movq %rax, -0x230(%rbp)
jmp 0x4337
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 0x4378
movq -0x230(%rbp), %rdi
leaq -0x15c(%rbp), %rsi
movss 0x12c76(%rip), %xmm0    # 0x17004
callq 0xb960
jmp 0x4395
movq -0x230(%rbp), %rax
movq %rax, -0x150(%rbp)
movl $0x98, %edi
callq 0x31b0
movq %rax, -0x238(%rbp)
jmp 0x43b6
movq -0x238(%rbp), %rdi
movq -0xe0(%rbp), %rsi
xorl %edx, %edx
callq 0x11400
jmp 0x43cd
movq -0x238(%rbp), %rax
movq %rax, -0x170(%rbp)
movl $0x98, %edi
callq 0x31b0
movq %rax, -0x240(%rbp)
jmp 0x43ee
movq -0x240(%rbp), %rdi
movq -0xe0(%rbp), %rsi
callq 0x12600
jmp 0x4403
movq -0x1e0(%rbp), %rax
movq -0x240(%rbp), %rcx
movq %rcx, -0x178(%rbp)
movl $0x4, -0x17c(%rbp)
addq $0x30, %rax
movq %rax, -0x250(%rbp)
movl $0x38, %edi
callq 0x31b0
movq %rax, -0x248(%rbp)
jmp 0x4440
movq -0x248(%rbp), %rdi
movss 0x12bb9(%rip), %xmm0    # 0x17008
xorl %esi, %esi
callq 0xebb0
jmp 0x4458
movq -0x248(%rbp), %rsi
movq -0x250(%rbp), %rdi
callq 0xb660
jmp 0x446d
movq -0x1e0(%rbp), %rdi
addq $0x30, %rdi
movq -0x150(%rbp), %rsi
callq 0xb660
jmp 0x4486
movq -0x1e0(%rbp), %rdi
addq $0x30, %rdi
movq -0x170(%rbp), %rsi
callq 0xb660
jmp 0x449f
movq -0x1e0(%rbp), %rdi
addq $0x30, %rdi
movq -0x178(%rbp), %rsi
callq 0xb660
jmp 0x44b8
movl $0x98, %edi
callq 0x31b0
movq %rax, -0x258(%rbp)
jmp 0x44cb
movl $0x0, -0x198(%rbp)
movl $0x0, -0x19c(%rbp)
movl $0x3f800000, -0x1a0(%rbp) # imm = 0x3F800000
leaq -0x194(%rbp), %rdi
leaq -0x198(%rbp), %rsi
leaq -0x19c(%rbp), %rdx
leaq -0x1a0(%rbp), %rcx
callq 0x8c30
jmp 0x450c
movq -0x258(%rbp), %rdi
movl -0xa8(%rbp), %eax
movl %eax, -0x1a8(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movl -0x1a8(%rbp), %eax
movl %eax, -0x1b8(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movsd -0x1c0(%rbp), %xmm0
movss -0x1b8(%rbp), %xmm1
movl $0x80, %esi
leaq -0x194(%rbp), %rdx
leaq -0x98(%rbp), %rcx
callq 0xcd30
jmp 0x4571
movq -0x258(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rax
movb $0x0, 0x3a(%rax)
movq -0x188(%rbp), %rax
movb $0x1, 0x38(%rax)
movl $0x3f800000, -0x1d0(%rbp) # imm = 0x3F800000
movl $0x0, -0x1d4(%rbp)
movl $0x0, -0x1d8(%rbp)
leaq -0x1cc(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
leaq -0x1d4(%rbp), %rdx
leaq -0x1d8(%rbp), %rcx
callq 0x8c30
jmp 0x45d6
movq -0x1e0(%rbp), %rax
movq -0x188(%rbp), %rcx
movl -0x1c4(%rbp), %edx
movl %edx, 0x28(%rcx)
movq -0x1cc(%rbp), %rdx
movq %rdx, 0x20(%rcx)
movq -0x188(%rbp), %rcx
movl $0x3c75c28f, 0x3c(%rcx) # imm = 0x3C75C28F
addq $0x30, %rax
movq %rax, -0x268(%rbp)
movl $0x38, %edi
callq 0x31b0
movq %rax, -0x260(%rbp)
jmp 0x4624
movq -0x260(%rbp), %rdi
movq -0x178(%rbp), %rsi
movq -0x188(%rbp), %rdx
callq 0x107a0
jmp 0x4640
movq -0x260(%rbp), %rsi
movq -0x268(%rbp), %rdi
callq 0xb660
jmp 0x4655
movq -0x1e0(%rbp), %rdi
addq $0x30, %rdi
movq -0x188(%rbp), %rsi
callq 0xb660
jmp 0x466e
movq -0x1e0(%rbp), %rax
addq $0x30, %rax
movq %rax, -0x278(%rbp)
movl $0x38, %edi
callq 0x31b0
movq %rax, -0x270(%rbp)
jmp 0x4693
movq -0x1e0(%rbp), %rsi
movq -0x270(%rbp), %rdi
callq 0xfdb0
jmp 0x46a8
movq -0x270(%rbp), %rsi
movq -0x278(%rbp), %rdi
callq 0xb660
jmp 0x46bd
addq $0x280, %rsp            # imm = 0x280
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x47ae
movq -0x1e8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x47ae
movq -0x230(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x47ae
movq -0x238(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x47ae
movq -0x240(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x47ae
movq -0x248(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x47ae
movq -0x258(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x47ae
movq -0x260(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x47ae
movq -0x270(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
movq -0x1e0(%rbp), %rdi
callq 0x8cc0
movq -0x28(%rbp), %rdi
callq 0x3280
nopw %cs:(%rax,%rax)