// File: Luthaf[P]zeopp/voronoicell.cc
// Function: writeVMDEnvVars(std::basic_fstream<char, std::char_traits<char>>&, ATOM_NETWORK*, VORONOI_NETWORK*)
void writeVMDEnvVars(fstream &output,  ATOM_NETWORK *atmnet, VORONOI_NETWORK *vornet){
  // Write information about the number of each component
  output << "set num_vorcells " << atmnet->numAtoms << "\n";
  output << "set num_faces " << atmnet->numAtoms << "\n";
  output << "set num_vornets 1" << "\n";
  output << "set num_nodes " << vornet->nodes.size() << "\n";
  output << "set num_atoms " << atmnet->numAtoms << "\n";
  output << "set num_unitcells 1" << "\n";
  output << "set num_channels 0" << "\n";
  
  // Write unitcell vector information
  output << "set uc_a_vector {" << atmnet->v_a.x << " " << atmnet->v_a.y 
         << " " << atmnet->v_a.z << "}" << "\n";
  output << "set uc_b_vector {" << atmnet->v_b.x << " " << atmnet->v_b.y
         << " " << atmnet->v_b.z << "}" << "\n";
  output << "set uc_c_vector {" << atmnet->v_c.x << " " << atmnet->v_c.y
         << " " << atmnet->v_c.z << "}" << "\n";
  output << "set sphere_resolution 100" << "\n";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
addq $0x10, %rdi
leaq 0x13c50e(%rip), %rsi    # 0x1fb131
callq 0x5540
movq %rax, %rdi
movq -0x10(%rbp), %rax
movl 0x110(%rax), %esi
callq 0x58d0
movq %rax, %rdi
leaq 0x13a9e1(%rip), %rsi    # 0x1f9625
callq 0x5540
movq -0x8(%rbp), %rdi
addq $0x10, %rdi
leaq 0x13c4eb(%rip), %rsi    # 0x1fb143
callq 0x5540
movq %rax, %rdi
movq -0x10(%rbp), %rax
movl 0x110(%rax), %esi
callq 0x58d0
movq %rax, %rdi
leaq 0x13a9ac(%rip), %rsi    # 0x1f9625
callq 0x5540
movq -0x8(%rbp), %rdi
addq $0x10, %rdi
leaq 0x13c4c5(%rip), %rsi    # 0x1fb152
callq 0x5540
movq %rax, %rdi
leaq 0x13a989(%rip), %rsi    # 0x1f9625
callq 0x5540
movq -0x8(%rbp), %rdi
addq $0x10, %rdi
leaq 0x13c4b4(%rip), %rsi    # 0x1fb164
callq 0x5540
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
callq 0xf270
movq -0x20(%rbp), %rdi
movq %rax, %rsi
callq 0x5160
movq %rax, %rdi
leaq 0x13a949(%rip), %rsi    # 0x1f9625
callq 0x5540
movq -0x8(%rbp), %rdi
addq $0x10, %rdi
leaq 0x13c483(%rip), %rsi    # 0x1fb173
callq 0x5540
movq %rax, %rdi
movq -0x10(%rbp), %rax
movl 0x110(%rax), %esi
callq 0x58d0
movq %rax, %rdi
leaq 0x13a914(%rip), %rsi    # 0x1f9625
callq 0x5540
movq -0x8(%rbp), %rdi
addq $0x10, %rdi
leaq 0x13c45d(%rip), %rsi    # 0x1fb182
callq 0x5540
movq %rax, %rdi
leaq 0x13a8f1(%rip), %rsi    # 0x1f9625
callq 0x5540
movq -0x8(%rbp), %rdi
addq $0x10, %rdi
leaq 0x13c44e(%rip), %rsi    # 0x1fb196
callq 0x5540
movq %rax, %rdi
leaq 0x13a8ce(%rip), %rsi    # 0x1f9625
callq 0x5540
movq -0x8(%rbp), %rdi
addq $0x10, %rdi
leaq 0x13c43e(%rip), %rsi    # 0x1fb1a9
callq 0x5540
movq %rax, %rdi
movq -0x10(%rbp), %rax
movsd 0x38(%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x13d523(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, %rdi
movq -0x10(%rbp), %rax
movsd 0x40(%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x13d503(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, %rdi
movq -0x10(%rbp), %rax
movsd 0x48(%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x13c230(%rip), %rsi    # 0x1faffb
callq 0x5540
movq %rax, %rdi
leaq 0x13a84b(%rip), %rsi    # 0x1f9625
callq 0x5540
movq -0x8(%rbp), %rdi
addq $0x10, %rdi
leaq 0x13c3cd(%rip), %rsi    # 0x1fb1bb
callq 0x5540
movq %rax, %rdi
movq -0x10(%rbp), %rax
movsd 0x50(%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x13d4a0(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, %rdi
movq -0x10(%rbp), %rax
movsd 0x58(%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x13d480(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, %rdi
movq -0x10(%rbp), %rax
movsd 0x60(%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x13c1ad(%rip), %rsi    # 0x1faffb
callq 0x5540
movq %rax, %rdi
leaq 0x13a7c8(%rip), %rsi    # 0x1f9625
callq 0x5540
movq -0x8(%rbp), %rdi
addq $0x10, %rdi
leaq 0x13c35c(%rip), %rsi    # 0x1fb1cd
callq 0x5540
movq %rax, %rdi
movq -0x10(%rbp), %rax
movsd 0x68(%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x13d41d(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, %rdi
movq -0x10(%rbp), %rax
movsd 0x70(%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x13d3fd(%rip), %rsi    # 0x1fc2ae
callq 0x5540
movq %rax, %rdi
movq -0x10(%rbp), %rax
movsd 0x78(%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0x13c12a(%rip), %rsi    # 0x1faffb
callq 0x5540
movq %rax, %rdi
leaq 0x13a745(%rip), %rsi    # 0x1f9625
callq 0x5540
movq -0x8(%rbp), %rdi
addq $0x10, %rdi
leaq 0x13c2eb(%rip), %rsi    # 0x1fb1df
callq 0x5540
movq %rax, %rdi
leaq 0x13a722(%rip), %rsi    # 0x1f9625
callq 0x5540
addq $0x20, %rsp
popq %rbp
retq
nop