// File: /workspace/github_cpp_makefile_star2_O1/Luthaf[P]zeopp/voronoicell.cc
// Function: VOR_CELL::writeVMDOutlined(std::basic_fstream<char, std::char_traits<char>>&, int)
void VOR_CELL::writeVMDOutlined(fstream &output, int n){
  output << "set vorcells(" << n <<") {" << "\n";
  
  // Iterate over all nodes in VOR_CELL
  for(int i = 0; i < numVertices; i++){
    Point curPoint = vertexCoords.find(i)->second;
    int nodeID = idMappings.find(i)->second;
    output << "{color $nodeColors(" << nodeID << ") }" << "\n"; 
    output << "{sphere {" << curPoint[0] << " " << curPoint[1] << " " << curPoint[2] << "} radius $nodeRadii(" << nodeID << ") resolution $sphere_resolution}" << "\n";
  }
  
  // Iterate over all edges in VOR_CELL
  output << "{color $vorcellColors(" << n << ") }" << "\n";
  for(int i = 0; i < numVertices; i++){
    Point p1 = vertexCoords[i];
    set<int>::iterator vertexIter = edgeConnections[i].begin();
    while(vertexIter != edgeConnections[i].end()){
      Point p2 = vertexCoords[*vertexIter];
	output << "{line {" 
	       << p1[0] << " " << p1[1] << " " << p1[2] << "} {" 
	       << p2[0] << " " << p2[1] << " " << p2[2] << "} width 1}" << "\n";
	vertexIter++;
    }
  }
  output << "}" << "\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r15
addq $0x10, %rbx
leaq 0xea1f5(%rip), %rsi     # 0x156290
movl $0xd, %edx
movq %rbx, %rdi
callq 0x44e0
movq %rbx, 0x10(%rsp)
movq %rbx, %rdi
movl %ebp, 0x1c(%rsp)
movl %ebp, %esi
callq 0x4750
movq %rax, %r14
leaq 0xea263(%rip), %rsi     # 0x156328
movl $0x3, %edx
movq %rax, %rdi
callq 0x44e0
leaq 0xe9455(%rip), %rsi     # 0x15552e
movl $0x1, %edx
movq %r14, %rdi
callq 0x44e0
cmpl $0x0, 0x18(%r15)
movq %r15, 0x8(%rsp)
jle 0x6c2d5
leaq 0xb8(%r15), %rsi
leaq 0x58(%r15), %r13
xorl %r12d, %r12d
movq %rsi, 0x38(%rsp)
movq 0xc0(%r15), %rcx
movq %rsi, %rax
testq %rcx, %rcx
je 0x6c132
movq %rsi, %rax
xorl %edx, %edx
cmpl %r12d, 0x20(%rcx)
setl %dl
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rdx,8), %rcx
testq %rcx, %rcx
jne 0x6c11b
movq %rsi, %rcx
cmpq %rsi, %rax
je 0x6c145
cmpl 0x20(%rax), %r12d
cmovlq %rsi, %rax
movq %rax, %rcx
movq 0x38(%rcx), %rax
movq %rax, 0x30(%rsp)
movups 0x28(%rcx), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x60(%r15), %rcx
movq %r13, %rax
testq %rcx, %rcx
je 0x6c17d
movq %r13, %rax
xorl %edx, %edx
cmpl %r12d, 0x20(%rcx)
setl %dl
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rdx,8), %rcx
testq %rcx, %rcx
jne 0x6c166
movq %r13, %rcx
cmpq %r13, %rax
je 0x6c190
cmpl 0x20(%rax), %r12d
cmovlq %r13, %rax
movq %rax, %rcx
movl 0x24(%rcx), %r14d
movl $0x13, %edx
movq 0x10(%rsp), %r15
movq %r15, %rdi
leaq 0xea0f6(%rip), %rsi     # 0x15629e
callq 0x44e0
movq %r15, %rdi
movl %r14d, %esi
callq 0x4750
movq %rax, %rbp
movl $0x3, %edx
movq %rax, %rdi
leaq 0xea0c2(%rip), %rsi     # 0x15628c
callq 0x44e0
movl $0x1, %edx
movq %rbp, %rdi
leaq 0xe9350(%rip), %rsi     # 0x15552e
callq 0x44e0
movl $0x9, %edx
movq %r15, %rdi
leaq 0xe7241(%rip), %rsi     # 0x153433
callq 0x44e0
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0xeb262(%rip), %r15     # 0x157486
movq %r15, %rsi
callq 0x44e0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x44e0
movq %rbx, %rdi
movl $0x2, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x46b0
movq %rax, %rbp
movl $0x14, %edx
movq %rax, %rdi
leaq 0xea02f(%rip), %rsi     # 0x1562b2
callq 0x44e0
movq %rbp, %rdi
movl %r14d, %esi
callq 0x4750
movq %rax, %r14
movl $0x20, %edx
movq %rax, %rdi
leaq 0xea022(%rip), %rsi     # 0x1562c7
callq 0x44e0
movl $0x1, %edx
movq %r14, %rdi
leaq 0xe9275(%rip), %rsi     # 0x15552e
callq 0x44e0
incl %r12d
movq 0x8(%rsp), %r15
cmpl 0x18(%r15), %r12d
movq 0x38(%rsp), %rsi
jl 0x6c109
leaq 0xea00c(%rip), %rsi     # 0x1562e8
movl $0x16, %edx
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x44e0
movq %rbx, %rdi
movl 0x1c(%rsp), %esi
callq 0x4750
movq %rax, %r14
leaq 0xe9f88(%rip), %rsi     # 0x15628c
movl $0x3, %edx
movq %rax, %rdi
callq 0x44e0
leaq 0xe9216(%rip), %rsi     # 0x15552e
movl $0x1, %edx
movq %r14, %rdi
callq 0x44e0
movq 0x8(%rsp), %rax
movl $0x0, 0x4(%rsp)
cmpl $0x0, 0x18(%rax)
jle 0x6c532
leaq 0xb0(%rax), %r15
leaq 0x20(%rsp), %rbp
leaq 0xeb137(%rip), %r12     # 0x157486
leaq 0x40(%rsp), %r13
movq %r15, %rdi
leaq 0x4(%rsp), %rsi
callq 0x6e85a
movq 0x8(%rsp), %rsi
movq 0x10(%rax), %rcx
movq %rcx, 0x30(%rsp)
movups (%rax), %xmm0
movaps %xmm0, 0x20(%rsp)
movslq 0x4(%rsp), %rax
movq 0xe0(%rsi), %rcx
leaq (%rax,%rax,2), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
addq $0x8, %rcx
movq 0x10(%rcx), %r14
cmpq %rcx, %r14
je 0x6c523
leaq 0x20(%r14), %rsi
movq %r15, %rdi
callq 0x6e85a
movups (%rax), %xmm0
movaps %xmm0, 0x40(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x50(%rsp)
movl $0x7, %edx
movq %rbx, %rdi
leaq 0xe7145(%rip), %rsi     # 0x153510
callq 0x44e0
movq %rbp, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movq %rbp, %rdi
movl $0x1, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movq %rbp, %rdi
movl $0x2, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %rbx
movl $0x3, %edx
movq %rax, %rdi
leaq 0xe7f2b(%rip), %rsi     # 0x15437b
callq 0x44e0
movq %r13, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movq %r13, %rdi
movl $0x1, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x44e0
movq %r13, %rdi
movl $0x2, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0xe9e2a(%rip), %rsi     # 0x1562ff
callq 0x44e0
movl $0x1, %edx
movq %rbx, %rdi
movq 0x10(%rsp), %rbx
leaq 0xe9040(%rip), %rsi     # 0x15552e
callq 0x44e0
movq %r14, %rdi
callq 0x44f0
movq 0x8(%rsp), %rsi
movq %rax, %r14
movslq 0x4(%rsp), %rax
movq 0xe0(%rsi), %rcx
leaq (%rax,%rax,2), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
addq $0x8, %rcx
jmp 0x6c396
incl %eax
movl %eax, 0x4(%rsp)
cmpl 0x18(%rsi), %eax
jl 0x6c354
leaq 0xe9d55(%rip), %rsi     # 0x15628e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x44e0
leaq 0xe8fe1(%rip), %rsi     # 0x15552e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x44e0
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop