IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
io.h File Reference

Classes to write entities in algebra to files. More...

#include "Vector3D.h"
#include "Sphere3D.h"
#include <IMP/file.h>
Include dependency graph for algebra/io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  IMP
 Base functionality and abstract base classes for representation, scoring and sampling.
namespace  IMP::algebra
 General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP modules.

Simple geometric IO

These functions write geometry to text files, one line per geometric primitive. Each line has the form “x y z” for points or “x y z r” for spheres. We can easily add general dimension support if requested.. Lines beginning with "#" are treated as comments.

Vector3Ds IMP::algebra::read_pts (TextInput input)
 Read a set of 3D vectors from a file.
Sphere3Ds IMP::algebra::read_spheres (TextInput input)
 Read a set of 3D spheres from a file.
void IMP::algebra::write_pts (const Vector3Ds &vs, TextOutput out)
 Write a set of 3D vectors to a file.
void IMP::algebra::write_spheres (const Sphere3Ds &vs, TextOutput out)
 Write a set of 3D spheres to a file.

Detailed Description

Classes to write entities in algebra to files.

Copyright 2007-2022 IMP Inventors. All rights reserved.

Definition in file algebra/io.h.