LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

transparency in a 3D parametric surface

hello all,

I'm currently struggling with the cwgraph3D control (4D graph).

I am able to assign a colormap to my plots. I now need to assign a transparent color to a special w value but I am not able to find the transparent color in the color palette. Could someone tell me wether it is possible or maybe a workaround (in short the purpose is to hide some special values while I can't remove the points from the matrix).

An other question about this control, how to plot some points with NaN (Not a Number) value as w coordinate?
0 Kudos
Message 1 of 6
(3,501 Views)

Hi Fabrice,

Due to the complexities of the 4-d graphs, whipping up examples takes some time.

Could you please post a sample VI that shows your code as it stands and also some screen shots that expand on how you want to enhance what you have so-far.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 6
(3,493 Views)
With my experience using the cwgraph3D control I havent seen any option to set point transparency.  Maybe you can set the point size to 0 without it crashing?  I will look into this but if nothing is apparent, I think the easiest thing to do would be using another point matrix that you have modified (deleting unwanted points) for your parametric surface display.  This doesnt mean you have to lose the original data without the deleted points.  You can save these using many methods.
good luck

Yohan
0 Kudos
Message 3 of 6
(3,489 Views)
OK, so take a look at attached VI (made with Labview 8.0), it is an example of the way I do.

I use simple surface and no parametric surface (my datasets are quite large and I have many slices to be shown) because I don't want the computer being busy to build matrix with the coordinates (what also takes a lot of RAM and my app has many other things to do in parallel).

So, what I would like to do is to assign a transparent color to NaN values (my array contains NaN values in spare areas). At the moment, I assign a blue color to NaN values (converted to 0s by the ActiveX I think).
Download All
0 Kudos
Message 4 of 6
(3,444 Views)
I finally had an answer from NI support. Points that should be transparent should be with z NaN value. That's it. No need to build a new point matrix.
0 Kudos
Message 5 of 6
(3,420 Views)

Good to know!  Thanks for the info

0 Kudos
Message 6 of 6
(3,407 Views)