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...
Type: Posts; User: disruptivetech
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...
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,...
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...
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...
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...
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...
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...
dont want to go down the IDE route....
I'm on ubuntu....
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...
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...
template<class T> class TreeNode {
protected:
TreeNode *_lchild;
TreeNode *_rchild;
T val;
public:
TreeNode(T);
virtual ~TreeNode(void);
//friend class SearchTree<T>;
//friend...
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:...
#include "BraidedNode.h"
template<class T> BraidedNode<T>::BraidedNode(T val)
: TreeNode<T>(val)
{
}
template<class T>
BraidedNode<T> *BraidedNode<T>::rchild(void)
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...
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"
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);
...
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...
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()’:...
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;
...
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...
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...
That would be good, no idea about ruby, but guess I'll learn
Thanks - can you post a link here....
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...
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...
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...