ACIS Importer¶
The ACIS importer, rwsat
uses 3D ACIS Modeler
to convert .sat files to geomdl JSON format.
rwsat
comes with the following list of programs:
sat2json
converts ACIS .sat files to geomdl JSON formatsatgen
generates sample geometries
Use Cases¶
- Import geometry data from .sat files and use it with
exchange.import_json()
- Convert ACIS file format to OBJ, STL, OFF and other formats supported by geomdl
Installation¶
Please refer to the rwsat repository for installation options. Due to ACIS licensing, no binary files are distributed within the repository.
Using with geomdl¶
The following code snippet illustrates importing the surface data converted from .sat file:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | from geomdl import exchange
from geomdl import multi
from geomdl.visualization import VisMPL as vis
# Import converted data
data = exchange.import_json("converted_acis.json")
# Add the imported data to a surface container
surf_cont = multi.SurfaceContainer(data)
surf_cont.sample_size = 30
# Visualize
surf_cont.vis = vis.VisSurface(ctrlpts=False, trims=False)
surf_cont.render()
|
References¶
- Development: https://github.com/orbingol/rwsat
- Documentation: https://github.com/orbingol/rwsat