C# :: Code To Extract Center Curve (medial Axis Or Topological Skeleton) Of A Mesh Or Point Cloud?
Jun 27, 2012
I looked at several questions/answers posted already such as this one on a planar polygon but could not find one that explains results in 3D such as the one shown in this paper and this one on "point cloud skeletonization through Laplacian-Based Contraction" where this quadratic equation comes back in both.
View 1 Replies
ADVERTISEMENT
Jan 26, 2012
I am creating a script editor in vb for a game engine and all is fine with the editor, I just cannot for the life of me get a mesh viewer working. If you are familiar with Unity3d Editor, it has a small 3d viewport that simple shows the mesh associated with the asset script being created where you can click drag rotate the mesh to have a look at it with the selected textures applied.
I have spent many hours digging through msdn trying to figure out how to do this. All samples I find are done in c# none in vb. I have even used code converters with no luck. Bot sure what sdk(s) to use either. How to do it as in setting up a project that has a basid 3D viewport that will also applie selected textures to the mesh? Even if it is hard coded to show a generic mesh and texture, It should be enough for me to grasp how to set it up.
View 1 Replies
Mar 2, 2010
I have several points where I draw a curved line from point to point using:e.Graphics.DrawCurve(p, theArrayOfPoints)Was wondering is it poss to draw text starting from the 1st point that followed the curve? This way the text bends.
View 14 Replies
Jul 9, 2009
The Matrix Transformation (1,0,0,-1,0,0) flips the points of a path around the X-Axis and (-1,0,0,1,0,0) flips around the Y-Axis. My question is, how (or can you) flip around another point.For instance, say I have a GraphicsPath.PathPoints that consist of 10,20 and 15,40 and I want the result to be 10,40 and 15,20 how would I do that or is it even possible.
View 1 Replies
Sep 16, 2009
I am having some major problems with the code in VBA and recording a macro didn't get me anywhere nor is the VBA help file. I have to have it so that I can input a values for the x axis rotation and the y axis rotation so that my 3d surface graph will rotate whatever values I input, the 3d surface graph will rotate those degrees. I also have to have a method for having the default rotation. I was also wondering how to put scroll bars for the x and y rotation. The only other thing I am having trouble with is having an input to check box for right angle axes. So far I have two cells for entering the x rotation value and the y rotation value. I also already have my 3d surface graph.
View 3 Replies
Jan 24, 2010
i'm developing a simple 2d animation program. my task is to get the center point of a rotation, for example: at the frame 0 there is a rectangle at x,y coordinates and with 0° of rotation at the frame 10 there is the same rectangle, translated and rotated what is the center point around which the rotation occurred? This is not really a question about programming, i know, rather than a problem of geometry.
View 1 Replies
Nov 30, 2010
im trying to create a code that will allow a point to circumference a center point.The coding i have below does this to a point but then the circle start going crazy and repeats itself.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Start()
End Sub
[code]....
View 2 Replies
Feb 16, 2012
I have been en-charged of creating some apps using the cloud. I only have experience programming windows apps (vb.net) Do you guys have any code samples of cloud apps in VB.NET? If not, do you know where I can find this?What about documentation for creating vb.net cloud apps?
View 3 Replies
May 22, 2012
I have a P/L chart which has a left scale (Y axis) which starts from a negative value. I want to format the axis labels (the major tick mark labels) so that the negative ones are red.
Something like;
If cht.ChartAreas(chtarea).AxisX.MajorTickMark.Value < 0 Then
cht.ChartAreas(chtarea).AxisY.LabelStyle.Font = New Font("Verdana", 9.0F, FontStyle.Bold, Color.Red)
[Code]....
Of course that doesn't work since MajorTickMark doesn't have a value property. How does one make this work?
View 1 Replies
Aug 14, 2011
I am having trouble in getting the coordinates of x-axis and y-axis in low level ouse hook...all I am getting is values in x-axis listbox and in y-axis listbox I am getting zeros......why? and my second problem is I am calling the setcursorpos
function in a for loop because I want to automate mouse movements and clicks, but setcursorpos function is not working , maybe because I am getting the coordinates wrong.....here is my code
low level mouse hook
Public Class MouseAutomating
Inherits HotKey
Public lstbox As New ListBox
[code]...
View 4 Replies
Nov 19, 2008
I'm using Visual Studio 2008 and when I type ''' I except to see a skeleton of an XML comment but for some reason when I type ''' nothing appears. I know this worked in 2005 how can I get it to work in 2008?
View 1 Replies
Jan 8, 2009
I have the smallest dataset in the world that simply consists of a month (text) and and amount. I want to produce a chart showing the month along the y-axis and the value up the x-axis. How do I do it? I have dragged the chart control onto the report page and populated the dataset. The chart shows but nothing like what I would expect. Just to make it simple I populated the dataset with an amount equivalent to the month number so it should show as 1 in January, 2 in Feb etc...However no matter where I drag the dataset's column names I don't get what I want. Where am I going wrong?
I use this simple loop to populate the dataset:
dsSales.Tables("Sales").Clear()
For i As Integer = 1 To 12
dsSales.Tables("Sales").Rows.Add(MonthName(i), i)
Next
ReportViewer1.RefreshReport()
I get this as a result:
View 1 Replies
Jan 3, 2012
When I call this Messagebox, is it possible to center the Messagebox on the parent form rather than centering it on the center of the screen?
View 2 Replies
Mar 20, 2010
Im currently working my way through understanding direct3D with visual basic for windows mobile. So far I have managed to write a fairly decent engine that allows me to create and transform any number of 3D primitives and 2D sprites. However I cant seem to figure out how to get Direct3D to apply any sort of shading to my meshes. Regardless of what angle they are to the camera, or their position in 3D space, they remain a solid flat color on every single polygon of the mesh.
[Code]...
View 3 Replies
Sep 21, 2008
Using visual basic 2008 express enition How do you make multiple pictureboxs center on screen the code i got from a book is this
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
PictureBox1.Left = ((Me.Width / 2) - (PictureBox1.Width))
PictureBox1.Top = ((Me.Height / 2) - (PictureBox1.Height))
PictureBox2.Left = ((Me.Width / 2) + (PictureBox2.Width))
PictureBox2.Top = ((Me.Height / 2) - (PictureBox2.Height))
[Code]...
View 1 Replies
Jun 11, 2011
is it possible to set all the textbox align to center within a form using just only one line of code? Rather than using
123TextBox.TextAlign = HorizontalAlignment.Center
456TextBox.TextAlign = HorizontalAlignment.Center
for every Textbox.
View 2 Replies
Jun 4, 2009
I hve been working with points a lot recently, and I have been wondering if there is a way to set a point without setting point.x and point.y separately. For example for (3, 5): Point1 = (3, 5) But that isn't right
View 4 Replies
Jul 27, 2009
This sub moves a rectangle to the center of the form and when it gets there it moves back to its original location. But something weird has happened and the rectangle still moves, but the boolean values dont change. I tested to see if that part of the code was executed by putting a messagebox where the boolean values are supposed to change and the messagebox didnt appear.
Here is the sub:
Public Sub Start()
Dim Energy As New PictureBox
_IsMoving = True 'here is the boolean values along with some other variables
[CODE]...
View 3 Replies
Jun 11, 2012
i found this video today and its a simple vb game but made me wonder how they kept the charater centered during movement.url...Anyone have a simple snippet to demostrate how they made a larger resulution then vewable and kept the picturebox centered and only moved the viewable area?
View 2 Replies
May 3, 2011
Is there a cloud app api available for developing on Visual Basic [2008 or 2010]
View 5 Replies
Jul 2, 2011
I want a tool to create database applications. I think that the Microsoft product for this is Visual Basic. I would like to ask:
1) Why Visual Basic is better than Delphi ( from Borland )?
2) Where can I see the Versions and Prices?
3) Visual Basic allows to put applications on the Cloud? How this works? In which Cloud services works?
4) Which database can be accessed directly - without having to install third- party components - from Visual Basic? Which of these databases works on the Cloud?
5) Does Visual Basic allows connections to Microsoft Office and/or OpenOffice?
6) Where can I find a version to test it?
View 2 Replies
Apr 1, 2012
I would like to ask : how can i make to support the cloud technology.
Do i have to first find a server that provides cloud services ? Or does the user provide his own custom credentials and server somehow ?
Also, what .NET technology is there for cloud services ? Azure ?
Do you know any good examples / website for that ?
If i develop for Azure will the same code run also with Amazon web services ?
View 3 Replies
Dec 7, 2010
I'm looking to move all my code into the cloud using some sort of source control service. It must first be able to integrate with Visual Studio 2008 and 2010, and possibly other environments. Meaning something that's fairly popular among different development environments. The only source control I'm familiar with is VSS, but I think it's time to move away from that. I also prefer a free service. I know that there are only code repository services that are free, but I just don't know how that integrates with Visual Studio and source control.
View 28 Replies
Apr 2, 2012
I would like to covert a 4 digit hexadecimal code point to UTF8.
For example:
4e00 to δΈ€
Dim s1 As String = Char.ConvertFromUtf32(&H28E02)
I don't think they are built for my 4 digit code though.
View 1 Replies
Jan 19, 2010
I am using Request.IsSecureConnection to check for SSL and redirecting where appropriate. When running my asp.net website on Rackspace's cloud, the server is running behind an SSL cluster, so IsSecureConnection will always return false. The same goes for checking whether the url contains "https://", always false, checking the port, etc. So the website gets stuck in big redirect loop.[code]...
View 2 Replies
May 13, 2012
I'm currently starting a new job in which I will be working on some coding in the future and need some advice on some good places to start so I can learn this correctly. Essentially we need to bring VB4 code over to the new VB.net language and I will be tasked with this. The project consists of a large battery of tests for psychiatric patients consisting of mostly multiple choice questions presented one at a time - since VB4 isn't very compatible, I think I will create a new battery from scratch while using the old code as a reference point.
I started creating the code this weekend for fun and am really enjoying it. However, a huge problem has been the abandonment of control arrays in the new language... by the time I got to creating my first questionnaire I'm stumped and can't follow the old code. Clearly I'm not ready to tackle such a large project with no experience and need to start from scratch; who would have thought .
The reason why I'm here is not to ask you to help me with my work. What I'm wondering is if any of you have any cool advice of great places to start learning the language (books, websites, etc). The amount of literature is very overwhelming so I thought I would ask some people with experience for tips. If any of you have stumbled across learning material with emphasis on coding that would be useful in the design of questionnaires or multiple choice exams, it would be particularly useful.
So far my starting place is Visual Basic 2010 Step by Step with Michael Halvorson, it seems good at a glance in the sense that it couples theory with practice but I'm already sure I'll need a little more.
View 12 Replies
Feb 26, 2012
Is there any way to stop the execution of the code that's under a button if for example a certain condition is met?
View 5 Replies
Aug 18, 2006
I'm wanting to copy a zip file from a network to the local PC (not a problem) however I also need to unzip the files within the zip file to a specified location on the users machine. Can this be done through VB code?
View 10 Replies
Feb 14, 2011
I have a Diagonal line drawn on a picture box on my forum and i need to know if the user has clicked the line I have the Start point and End Point of the Line and the mouse x,y location So i basically need to find out if the x,y of the mouse is on the line.
View 2 Replies
Dec 20, 2011
I have a Azure worker role that needs to use the cache in AppFabric. When run locally (Win7x64,VS2010) pointing at the cache in the cloud, it works fine.When I deploy the same package to the cloud (again pointing at the same cache), it produces the following exception:
Message: The type initializer for 'Microsoft.ApplicationServer.Caching.DataCacheClientLogManager' threw an exception.
Exception Type: TypeInitializationException
StackTrace: Microsoft.ApplicationServer.Caching.DataCacheClientLogManager.Initialize(DataCacheLogSink logSink)
at Microsoft.ApplicationServer.Caching.DataCacheFactoryConfiguration.Initialize(String clientName)
at CommunicationRole.CacheUtil.GetCache()
Having looked at the code, this is happening when this line of code is hit:
Dim configuration As New DataCacheFactoryConfiguration()
Nothing runs after this line is hit. As I've said, the configs between local and cloud are the same. I use the cache with the credentials as a session state provider in a web deployment so I believe the cache and access to it are good.My build machine has the November 2011 release of the Azure SDK, and Azure AppFabric SDK 1.5 installed.
The method to get the cache is as follows:
Imports System.IO
Imports Microsoft.WindowsAzure
Imports Microsoft.WindowsAzure.ServiceRuntime
[code].....
View 1 Replies