./features/read & write ASTRA
Download Features Source code Forum Ask for support

ASTRA translator

ASTRA is a CAD/CAM/CAE software package developed in Sobolev Institute of Mathematics (Novosibirsk). As far as we are concerned, this system is helpful for preparing CAD models to numerical simulation although its scope is much broader. This system supports the following types of geometric primitives:

All surfaces in ASTRA are untrimmed, i.e., splines are bounded by the extremities of their formal parametric ranges. While such surfaces are easily convertable to OpenCascade representation (they are a subset of NURBS), the reversed operation of writing OpenCascade's NURBS to ASTRA is more troublesome as the geometries have to be specifically prepared. The surfaces have to be converted to C1-continuous patchwork of 3-degree Bezier. The curves should be segmented into C1-continuous chains of Bezier curves.

You can read more about our take on ASTRA in the Manifold Geometry blog.

Reader

Use the following command to read an ASTRA file:

> load-astra <filename>

All curves and surfaces will be loaded into the imperative viewer. The generatrix curves for surfaces of revolution will be created as explicit entities.

Writer

Use the following command to save an ASTRA file:

> save-astra -vars <var1> <var2> ... -filename <filename>

The variables are taken from the imperative viewer's section. All surfaces become untrimmed. The generatrix curves of surfaces of revolution are converted to splines.

Note for Russian users

Since ASTRA is pretty much a local Russian system, there something to be aware of for Russian users. ASTRA files might contain cyrilic characters for curve and surface names. Since the files generated by ASTRA (dat-files) are normally stored in ANSI encoding, in order to read those cyrilic characters properly, a Windows OS user should have Russian locale enabled.

To change your locale to "Russian", go to the Control Panel and head over to the "Region" settings.

If your setup is correct, you should see proper Russian entity names in the data browser of Analysis Situs: