.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Point3d available as floats not doubles?

Posted By:      Posted Date: October 19, 2010    Points: 0   Category :WPF


I have a very large 3d object with many thousand points and subsequently very many polygons and texture points (double sets for different textures). All these seems to be stored as doubles in their points, and this is quite unnecessary since the accuracy for my data only need to be floats. Since all data is stored as doubles the memory doubles as well from what i actually need. Is there any way or method to store Points, Point3Ds as floats instead of doubles?

Best regards


View Complete Post

More Related Resource Links

Unit Testing: Exploring The Continuum Of Test Doubles


Creating and using mock component servers simplifies unit testing. Use these examples to get started.

Mark Seemann

MSDN Magazine September 2007

Header Floats right on Fixed Position



I have a header with div having a fixed position, to stay at the same position even if the we schroll the page up/down.

No the issue is with the position, as users with low screen resolution are having the header on the left side, due to the fixed position, and i have the right margin set to 117px, so it shfits towards the left.

  <div style="position:fixed; z-index:1; background-image:url(/images/portlet/icon_base_strip.jpg); 
                                top: 0px; width: 1025px; right:117px;  height:21px; " align="center" > 
                            <table width="800px" height="16px" border="0" cellspacing="0" cellpadding="0">
                                    <td colspan="2" style="height: 21px">
                                        <table border="0" cellspacing="0" cellpadding="0" align="right">
                                                <td style="width: 25px" valign="top">
                                                <a href="" target="_blank">

doubles being miscalculated (rounding errors?)


I'll try to keep this short and to the point.  I'm not exactly sure which forum to put this in.

Generally, if you add two doubles, say 1.3 and 2.5, you get a sensible answer (3.8).  In my program, this works as expected, until I open a certain form.  Once it's been opened, doubles go crazy throughout the whole application.  Here are some examples of results I get after opening the form (these results were computed on a separate form):






So most numbers become corrupted.  Okay but it's even more complicated than that.  If I write the values to a textbox, the output may or may not be corrupted, depending on if the numbers are assigned:

 a = 1.3;
 b = 4.5;
 c = a+b;
textbox1.text += a.tostring();
textbox1.text += "\r\n"
textbox1.text += "\r\n"
textbox1.text += "\r\n"

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend