compas

Utility functions

JSON handling

json_dump

Write a collection of COMPAS object data to a JSON file.

json_dumps

Write a collection of COMPAS objects to a JSON string.

json_load

Read COMPAS object data from a JSON file.

json_loads

Read COMPAS object data from a JSON string.

Precision

set_precision

Set the precision used by geometric maps.

Execution context

WINDOWS

bool(x) -> bool

LINUX

bool(x) -> bool

OSX

bool(x) -> bool

MONO

bool(x) -> bool

IPY

bool(x) -> bool

RHINO

bool(x) -> bool

BLENDER

bool(x) -> bool

is_windows

Check if the operating system is Windows.

is_linux

Check if the operating system is Linux.

is_osx

is_mono

Check if the operating system is running on Mono.

is_ironpython

Check if the Python implementation is IronPython.

is_rhino

is_blender