Ignore:
Timestamp:
02/02/21 00:31:41 (3 years ago)
Author:
sz
Message:

sdk tests updated (remove Part.vs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/tests/genomanipulation-default.goal

    r1033 r1067  
    3636
    3737 [this data is provided by Part::properties() ]
    38  #        id                      type  name        group (22 properties)
     38 #        id                      type  name        group (21 properties)
    3939 0.        x = 1.0                  f   position.x  Geometry 
    4040 1.        y = 0.0                  f   position.y  Geometry 
     
    555516.        i =                      s   info        Other properties
    565617.   Vstyle = part                 s 0 0 part vis_style   Visual   
    57 18.       vs = 0.2                  f 0.05 0.7 0.2 visual thickness  Visual   
    58 19.       vr = 0.5                  f 0.0 1.0 1.0 red component  Visual   
    59 20.       vg = 0.5                  f 0.0 1.0 1.0 green component  Visual   
    60 21.       vb = 0.5                  f 0.0 1.0 1.0 blue component  Visual   
     5718.       vr = 0.5                  f 0.0 1.0 1.0 red component  Visual   
     5819.       vg = 0.5                  f 0.0 1.0 1.0 green component  Visual   
     5920.       vb = 0.5                  f 0.0 1.0 1.0 blue component  Visual   
    6160
    6261However, there is a subset of properties which may be modified more freely.
     
    6665
    6766 [this data is provided by Part::extraProperties() ]
    68  #        id                      type  name        group (9 properties)
     67 #        id                      type  name        group (8 properties)
    6968 0.        h = 0.0                  f 0 1 0 hollow      Extra properties
    7069 1.       dn = 1.0                  f 0.2 5.0 1.0 density     Extra properties
     
    7271 3.      ing = 0.25                 f 0.0 1.0 0.25 ingestion   Extra properties
    7372 4.       as = 0.25                 f 0.0 1.0 0.25 assimilation  Extra properties
    74  5.       vs = 0.2                  f 0.05 0.7 0.2 visual thickness  Extra properties
    75  6.       vr = 0.5                  f 0.0 1.0 1.0 red component  Extra properties
    76  7.       vg = 0.5                  f 0.0 1.0 1.0 green component  Extra properties
    77  8.       vb = 0.5                  f 0.0 1.0 1.0 blue component  Extra properties
     73 5.       vr = 0.5                  f 0.0 1.0 1.0 red component  Extra properties
     74 6.       vg = 0.5                  f 0.0 1.0 1.0 green component  Extra properties
     75 7.       vb = 0.5                  f 0.0 1.0 1.0 blue component  Extra properties
    7876
    7977This set of properties can vary from release to release,
     
    8381Now we will try to change some of properties:
    8482
    85       Change property #5 to random value from range [0.05..0.7]
    86       Current value of 'vs' (visual thickness) is '0.2'
     83      Change property #4 to random value from range [0..1]
     84      Current value of 'as' (assimilation) is '0.25'
    8785      Setting new value... [ using ParamInterface::set() ]
    88       The value is now '0.514873'
     86      The value is now '0.715189'
    8987
    9088Let's see f0... (check out part #1 !)
    9189
    9290p:vr=0.5, 0.5, 0.5
    93 p:1.0, vs=0.514873, vr=0.5, 0.5, 0.5
     91p:1.0, as=0.715189, vr=0.5, 0.5, 0.5
    9492j:0, 1, dx=1.0, 0.0, 0.0, vr=0.5, 0.5, 0.5
    9593n:p=1
     
    145143
    146144p:y=0.1, vr=0.5, 0.5, 0.5
    147 p:1.0, 0.1, 0.1, vs=0.514873, vr=0.5, 0.5, 0.5
     145p:1.0, 0.1, 0.1, as=0.715189, vr=0.5, 0.5, 0.5
    148146j:0, 1, dx=1.0, 0.0, 0.1, vr=0.5, 0.5, 0.5
    149147n:p=1
     
    159157
    160158p:y=0.1, vr=0.5, 0.5, 0.5
    161 p:1.0, 0.1, -0.1, vs=0.514873, vr=0.5, 0.5, 0.5
     159p:1.0, 0.1, -0.1, as=0.715189, vr=0.5, 0.5, 0.5
    162160j:0, 1, dx=1.0, 0.0, -0.1, vr=0.5, 0.5, 0.5
    163161n:p=1
     
    172170
    173171p:y=0.1, vr=0.5, 0.5, 0.5
    174 p:1.0, 0.1, -0.1, vs=0.514873, vr=0.5, 0.5, 0.5
     172p:1.0, 0.1, -0.1, as=0.715189, vr=0.5, 0.5, 0.5
    175173j:0, 1, vr=0.5, 0.5, 0.5
    176174n:p=1
     
    188186
    189187p:vr=0.5, 0.5, 0.5
    190 p:1.0, 0.1, -0.1, vs=0.514873, vr=0.5, 0.5, 0.5
     188p:1.0, 0.1, -0.1, as=0.715189, vr=0.5, 0.5, 0.5
    191189j:0, 1, vr=0.5, 0.5, 0.5
    192190n:p=1
     
    215213
    216214p:vr=0.5, 0.5, 0.5
    217 p:1.0, 0.1, -0.1, vs=0.514873, vr=0.5, 0.5, 0.5
     215p:1.0, 0.1, -0.1, as=0.715189, vr=0.5, 0.5, 0.5
    218216j:0, 1, vr=0.5, 0.857946, 0.5
    219217n:p=1
     
    311309
    312310p:vr=0.5, 0.5, 0.5
    313 p:1.0, 0.1, -0.1, vs=0.514873, vr=0.5, 0.5, 0.5
     311p:1.0, 0.1, -0.1, as=0.715189, vr=0.5, 0.5, 0.5
    314312j:0, 1, vr=0.5, 0.857946, 0.5
    315313n:p=1
Note: See TracChangeset for help on using the changeset viewer.