... | ... | @@ -479,7 +479,7 @@ The 3D texture class possesses the following methods: |
|
|
* ```w()```: return the texture's width
|
|
|
* ```h()```: return the texture's height
|
|
|
* ```d()```: return the texture's depth
|
|
|
* ```set(u,v,w,val)```: sets the value ```val``` at texture coordinate ```(u,v,w)```
|
|
|
* ```set(u,v,w,val)```: sets the value ```val``` at texture coordinate ```(u,v,w)```. ```val``` is a vector where each component must be in the range $`[0-1]`$. If the texture type is luminance (i.e., one channel texture), the second and third components of ```val``` are ignored.
|
|
|
|
|
|
The following example shows a 1-channel 3D texture created programmatically and used as input in an implicit. Two solid cubes (one on each corner) made of the value ```-1.0``` are drawn into the texture while the rest is left at value ```10.0```. The implicit maps each point of the implicit area to a point of the texture repeated twice.
|
|
|
|
... | ... | @@ -1006,9 +1006,9 @@ Sets the printing parameter ```settings``` to ```value``` |
|
|
|
|
|
```set_setting_value(setting, tex3d, boxMin, boxMax)```
|
|
|
|
|
|
Sets the printing parameter ```setting``` as a _field_ that extends from ```boxMin``` to ```boxMax``` with values from ```tex3d```
|
|
|
Sets the printing parameter ```setting``` as a _field_ that extends from ```boxMin``` to ```boxMax``` with values from ```tex3d```. Recall that individual values in textures are in the $`[0-1]`$ range, thus they are interpreted according to the setting's minimum and maximum values (e.g, 0.0 could mean no infill or zero degrees, and 1.0 could mean fully infilled or 360 degrees respectively).
|
|
|
* ```setting```: Internal name of the printing setting to change
|
|
|
* ```tex3d```: Value of the field as a 3d texture
|
|
|
* ```tex3d```: Value of the field as a 3d texture.
|
|
|
* ```boxMin,boxMax```: Field extent
|
|
|
|
|
|
### Variable caching <a name="caching"></a>
|
... | ... | |