In relation to my previous message, I would like to point to the following link:
http://wiki.tcl.tk/1650
It seems that in Tcl 8.5 setting tcl_precision to 0 avoids for example 1.4 to be 1.3999999999999999. I'm using GiD version 12.0.3. What Tcl version does it implement?
Thanks,
Eduard
Search found 30 matches
- Tue Jan 13, 2015 11:06 pm
- Forum: Customization
- Topic: Floating point precision in Tcl
- Replies: 4
- Views: 8489
- Tue Jan 13, 2015 10:50 pm
- Forum: Customization
- Topic: Floating point precision in Tcl
- Replies: 4
- Views: 8489
Floating point precision in Tcl
Hello, in GiD-Tcl, when summing 10+0.46 I'm getting values like 10.46000000000001. This makes impossible to compare floating-point values, because they will always be inequal. So I wanted to change the value of the built-in variable tcl_precision, but it seems that this Tcl built in variable is not ...
- Tue Jan 13, 2015 3:43 pm
- Forum: Mesh
- Topic: Structured meshing by size in Tcl
- Replies: 5
- Views: 5806
- Tue Jan 13, 2015 12:21 am
- Forum: Mesh
- Topic: Structured meshing by size in Tcl
- Replies: 5
- Views: 5806
Structured meshing by size in Tcl
Hello, I'm using Tcl to mesh a geometry. I would like to know which is the command to implement the following: Mesh --> Structured --> Surfaces --> Assign size ... The command "GiD_Process Mescape Meshing Structured Surfaces..." implements only the meshing by number of cells, by default. T...
- Thu Jan 08, 2015 10:19 pm
- Forum: Customization
- Topic: Assign color to each material
- Replies: 4
- Views: 4724
Re: Assign color to each material
Exactly, this is the idea; being able to assign a specific color to each different material. RGB is good enough. With a GiD-Tcl would be perfect.
Thanks,
Eduard
Thanks,
Eduard
- Thu Jan 08, 2015 5:20 pm
- Forum: Customization
- Topic: Assign color to each material
- Replies: 4
- Views: 4724
Re: Assign color to each material
I would suggest including the option of assigning specific colors to materials in a future release. It can be important for visualization purposes.
Thanks.
Thanks.
- Wed Jan 07, 2015 11:01 pm
- Forum: Customization
- Topic: Assign color to each material
- Replies: 4
- Views: 4724
Assign color to each material
Hello,
I would like to know if there's any way to assign a color to each material, either doing it manually or through Tcl.
Thanks,
Eduard
I would like to know if there's any way to assign a color to each material, either doing it manually or through Tcl.
Thanks,
Eduard
- Mon Dec 29, 2014 8:18 pm
- Forum: Customization
- Topic: Assign conditions
- Replies: 2
- Views: 3804
Re: Assign conditions
Very useful reply.
It's very convenient having the "right buttons" toolbar!
Thanks again,
Eduard
It's very convenient having the "right buttons" toolbar!
Thanks again,
Eduard
- Mon Dec 29, 2014 7:33 pm
- Forum: Customization
- Topic: Assign conditions
- Replies: 2
- Views: 3804
Assign conditions
Hello, I'm trying to assign conditions to entities, through Tcl code, with a command as follows: GiD_Process Mescape Data Conditions Assign Indicator-to-Lines value 1:4 escape The problem is that the condition "Indicator-to-Lines" has many different flags that can be either 0 or 1. So how ...
- Mon Dec 29, 2014 7:26 pm
- Forum: Geometry
- Topic: Creating a rectangle in TCL
- Replies: 4
- Views: 6672
Re: Creating a rectangle in TCL
Great. Thanks!