Changeset 1347
- Timestamp:
- 08/27/25 18:15:39 (25 hours ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/Convert.h
r1339 r1347 6 6 #define _CONVERT_H_ 7 7 8 #include "nonstd_math.h" 8 9 #include "nonstd.h" 9 #include "nonstd_math.h"10 10 #include "nonstd_stl.h" 11 11 #include <stdint.h> -
cpp/common/nonstd_math.cpp
r1298 r1347 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 4Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2025 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 5 5 #include "nonstd_math.h" 6 #ifdef USE_PRINTFLOAT_DRAGON4 6 7 #include <PrintFloat/PrintFloat.h> 8 #endif 7 9 #include <string.h> // strncpy() 8 10 #include <sstream> -
cpp/frams/genetics/f9/f9_conv.cpp
r1337 r1347 154 154 double ax = fabs(d.x), ay = fabs(d.y), az = fabs(d.z); 155 155 // Pairs of colors should be easy to associate as "one family" at a glance, but different so that we use all main six parts of the spectrum. 156 // Colors are slightly brightened to make them more pastel/plastic; extreme saturation pure red=1,0,0 or blue 156 // Colors are slightly brightened to make them more pastel/plastic; extreme saturation pure red=1,0,0 or blue=0,0,1 do not look good. 157 157 // Find the longest axis (i.e., recover the information from the genotype: was this joint created by LR, BF, or DU?) 158 158 if ((ax > ay) && (ax > az)) // x -
framspy/frams.py
r1345 r1347 27 27 import ctypes, re, sys, os 28 28 29 c_api = None # will be initialized in init(). Global because ExtValue uses it.29 c_api = None # will be initialized in init(). This variable is global because all ExtValue objects use it extensively. 30 30 31 31 … … 320 320 Similarly '-dPATH' and '-DPATH' needed by Framsticks are optional and derived from the first path, unless they are specified as args in init(). 321 321 '-LNAME' is the optional library name (full name including the file name extension), default is 'frams-objects.dll/.so/.dylib' depending on the platform. 322 All other arguments are passed to Framsticks and not interpreted by this function.322 All other arguments are passed to Framsticks and are not interpreted by this function. 323 323 """ 324 324 … … 359 359 initargs.append(a) 360 360 if lib_path is None: 361 # TODO: use environment variable and/or the zip distribution we are in when the path is not specified in arg 362 # for now just assume the current dir is Framsticks361 # TODO: use environment variable and/or the zip distribution we are in when the path is not specified in arg. 362 # For now, just assume the current dir is Framsticks. 363 363 lib_path = '.' 364 364 … … 378 378 initargs.insert(0, frams_d) 379 379 initargs.insert(0, frams_D) 380 initargs.insert(0, 'dummy.exe') # as an offset, 0th arg is by convention app name380 initargs.insert(0, 'dummy.exe') # as an offset, 0th arg is by convention the app name 381 381 382 382 global c_api # access global variable
Note: See TracChangeset
for help on using the changeset viewer.