# Search:

Type: Posts; User: disruptivetech

Page 1 of 2 1

1. ## Thread: gdb debug issues

by disruptivetech
Replies
1
Views
3,963

### gdb debug issues

Hi Guys

I am trying to print out the value of a variable after a segmentation fault. However no matter what i try cannot get the values printed out. I have tried print XX, to no avail. The...
2. ## Thread: Correct usage of malloc and free for 2D array

by disruptivetech
Replies
1
Views
2,261

### Correct usage of malloc and free for 2D array

I have a program that requires to create and delete a 2D array of variable size, hence the dynamic usage. However I wish to ask a simple question about the correct or recommended usage. For example,...
3. ## Thread: Matrix Rotation

by disruptivetech
Replies
5
Views
1,811

### I have some inherited code, but it has no...

I have some inherited code, but it has no references in it. However the basic operation is to define a rotation centre (the point to be rotated defined as a vector). Then a rotation occurs by phi and...
4. ## Thread: Matrix Rotation

by disruptivetech
Replies
5
Views
1,811

### Matrix Rotation

Hi, I am looking for a code that will perform a matrix rotation around a desired point and NOT about an axis for example. I am looking for references in this area that would help me achieve this...
5. ## Thread: Normals to triangles

by disruptivetech
Replies
5
Views
1,449

### Sure you say there there is clockwise and...

Sure you say there there is clockwise and counter-clockwise. But given a face, and its verticies the decision over the edges is arbritary? There is no rule governing this per se?? since I just have...
6. ## Thread: Normals to triangles

by disruptivetech
Replies
5
Views
1,449

### Normals to triangles

I wish to construct normals to a surface from triangles. I have the triangulation and can calculate the normals based on the cross product of the edges. However there is an issue with direction. I...
7. ## Thread: CGAL question

by disruptivetech
Replies
0
Views
1,221

### CGAL question

This is a question regarding the library cgal and geomviewer, which can be found at http://www.cgal.org/

Here is the problem:

1. I want to be able to display line segments with geomviewer...
8. ## Thread: makefile help

by disruptivetech
Replies
10
Views
1,214

### dont want to go down the IDE route.... I'm on...

dont want to go down the IDE route....

I'm on ubuntu....
9. ## Thread: makefile help

by disruptivetech
Replies
10
Views
1,214

### Thanks for the link, but unless I am mistaken I...

Thanks for the link, but unless I am mistaken I did not see anything relating to the structure of the makefile that I have. I have been this archetype because I do not have an IDE simply the template...
10. ## Thread: makefile help

by disruptivetech
Replies
10
Views
1,214

### makefile help

Hi

I have some libraries that require execution with a certain make file. However I am unsure how to extend the makefile to include other .cpp files. I have listed below. Could some-one please...
11. ## Thread: Templates and classes

by disruptivetech
Replies
13
Views
1,523

### template class TreeNode { protected: ...

template<class T> class TreeNode {
protected:
TreeNode *_lchild;
TreeNode *_rchild;
T val;
public:
TreeNode(T);
virtual ~TreeNode(void);
//friend class SearchTree<T>;
//friend...
12. ## Thread: Templates and classes

by disruptivetech
Replies
13
Views
1,523

### Should be inheriting from the Node class and Tree...

Should be inheriting from the Node class and Tree Node class, which are as follows:

template<class T> class TreeNode {
protected:
TreeNode *_lchild;
TreeNode *_rchild;
T val;
public:...
13. ## Thread: Templates and classes

by disruptivetech
Replies
13
Views
1,523

### #include "BraidedNode.h" template...

#include "BraidedNode.h"

template<class T> BraidedNode<T>::BraidedNode(T val)
: TreeNode<T>(val)
{
}

template<class T>
BraidedNode<T> *BraidedNode<T>::rchild(void)
14. ## Thread: Templates and classes

by disruptivetech
Replies
13
Views
1,523

### whoops, bit of a typo: the error I have now is: ...

whoops, bit of a typo: the error I have now is:

BraidedNode.cpp: In member function ‘BraidedNode<T>* BraidedNode<T>::rchild()’:
BraidedNode.cpp:11: error: ‘_rchild’ was not declared in this scope...
15. ## Thread: Templates and classes

by disruptivetech
Replies
13
Views
1,523

### Templates and classes

I keep getting bizzare errors when trying to compile the following code..These are standard template classes.

I have the following two files:

BraidedNode.cpp

#include "BraidedNode.h"
16. ## Thread: Class warfare

by disruptivetech
Replies
13
Views
1,304

### Great, thats the ticket! Thanks for that, now...

Great, thats the ticket!

Thanks for that, now for my next question...got the following class:

class Vertex : public Node, public Point {
public:
Vertex(double x, double y);
...
17. ## Thread: Class warfare

by disruptivetech
Replies
13
Views
1,304

### Class warfare

These classes are published classes, simply I am using them now, but cannot even get them to compile. So for example I get the following errors relating to member functions not being found. I have...
18. ## Thread: Header files and classes

by disruptivetech
Replies
5
Views
1,710

### I have placed class Point; in the appropriate...

I have placed class Point; in the appropriate header file. However I find that now when compiling I get the following string of errors:

Edge.cpp: In member function ‘Edge& Edge::rot()’:...
19. ## Thread: Header files and classes

by disruptivetech
Replies
5
Views
1,710

### Header files and classes

Hi

I have a couple of classes defined, one class and structures defined that are from another class. So I have for example:

class Edge {
public:
Point org;
Point dest;
...
20. ## Thread: 3D meshing

by disruptivetech
Replies
1
Views
934

### 3D meshing

I am having trouble to find a suitable simple algorithm for 3D Delaunay to apply to a 3D surface. Does anyone have any pointers for a simple algorithm. I do not need it to be quick or efficient, just...
21. ## Thread: Matrix Determination calculation

by disruptivetech
Replies
1
Views
1,970

### Matrix Determination calculation

Hi

I am looking for some good, simple efficient algorithms to determine the 'determinant' for a Matrix of MxN elements. Can anybody help with this, I cannot find some good code sets. I can have a...
22. ## Thread: 3D Delauney Algorithm

by disruptivetech
Replies
3
Views
1,357

### That would be good, no idea about ruby, but guess...

That would be good, no idea about ruby, but guess I'll learn

Thanks - can you post a link here....
23. ## Thread: 3D Delauney Algorithm

by disruptivetech
Replies
3
Views
1,357

### 3D Delauney Algorithm

Hi

I have a 3D surface in existence which is defined by a series of points. So each point is (x,y,z). Now I need to find the 3D Delauney map of the surface such that I can then find the normals to...
24. ## Thread: Rotation Matrcies

by disruptivetech
Replies
4
Views
1,225

### Thanks guys The problem is I have implemented...

Thanks guys

The problem is I have implemented code that I wrote 2.5 years ago and cannot find my reference to how I actually performed the COM part. Its quite involved and I suspect it involves...
25. ## Thread: Rotation Matrcies

by disruptivetech
Replies
4
Views
1,225

### Rotation Matrcies

Hi

I have a 3D object.

I would like to perform a 3D rotation about its COM (centre of mass), in terms of theta and phi. Not about the axes. I did have a piece of code to do this, but have lost...
Results 1 to 25 of 41
Page 1 of 2 1