settings - global and default settings

The settings module holds dictionnaries each aspect of the madcad library.

dictionnaries:
primitives

default settings for mesh and primitive operations

display

visual settings to display the 3D objects

scene

for what and how to display in the 3D scene

controls

preferences for the controls of the Scene widget

All the settings presents here are loaded at start or on demand from ~/.config/madcad/pymadcad.json

load(file=None)

load the settings directly in this module, from the specified file or the default one

dump(file=None)

load the current settings into the specified file or to the default one

install()

create and fill the config directory if not already existing

clean()

delete the default configuration file

use_qt_colors()

set the color settings to fit the current system colors

curve_resolution(length, angle, param=None)

return the subdivision number for a curve, using the given or setting specification

Length

is the curvilign length of the curve

Angle

is the integral of the absolute curvature (total rotation angle)