Search:

Type: Posts; User: disruptivetech

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    5,419

    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. 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. Replies
    5
    Views
    2,552

    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. Replies
    5
    Views
    2,552

    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. Replies
    5
    Views
    2,040

    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. Replies
    5
    Views
    2,040

    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. Replies
    0
    Views
    1,570

    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. Replies
    10
    Views
    1,893

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

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

    I'm on ubuntu....
  9. Replies
    10
    Views
    1,893

    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. Replies
    10
    Views
    1,893

    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. Replies
    13
    Views
    2,077

    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. Replies
    13
    Views
    2,077

    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. Replies
    13
    Views
    2,077

    #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. Replies
    13
    Views
    2,077

    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. Replies
    13
    Views
    2,077

    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. Replies
    13
    Views
    2,198

    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. Replies
    13
    Views
    2,198

    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. Replies
    5
    Views
    2,610

    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. Replies
    5
    Views
    2,610

    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. Replies
    1
    Views
    1,317

    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. Replies
    1
    Views
    2,260

    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. Replies
    3
    Views
    1,602

    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. Replies
    3
    Views
    1,602

    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. Replies
    4
    Views
    1,434

    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. Replies
    4
    Views
    1,434

    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 2