User Profile

Collapse

Profile Sidebar

Collapse
freqzz
freqzz
Last Activity: Apr 24 '07, 05:05 PM
Joined: Feb 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • freqzz
    replied to Pointer
    in C
    Thanks, but currently i have two structure, i cant manage two link both data together.

    Code:
    struct Point
    {
    	float x, y, z;
    };
    
    struct Tin
    {
    
    	float node1, node2, node3;
    
    };
    See more | Go to post

    Leave a comment:


  • freqzz
    started a topic Pointer
    in C

    Pointer

    I got a problem using pointer.

    I got two table in two different file.

    First one:

    x y z

    7 6 5
    1 3 4
    2 1 4

    the other one:

    node1 node2 node3

    1 2 3
    2 3 1
    3 1 2

    My problem is, how do i point table two to take the value of table one.

    let...
    See more | Go to post

  • freqzz
    replied to fstream to array
    in C
    A new problem arrive. I have two files. One files in this format:

    10.23 5.63 4.12
    14.2 -5.1 1.33
    1.22 1.25 1.5
    7.56 8.15 -5.25
    5.23 7.11 4.0

    The other one is:

    1 2 3
    3 5 4
    2 4 1
    5 1 3
    3 1 2


    Same concept as the earlier question. But I need to link both file so it will end up as one.

    The first file is a coordinate...
    See more | Go to post

    Leave a comment:


  • freqzz
    replied to OpenGL + Triangulation
    in C
    Any help? I'm practically stuck here..
    See more | Go to post

    Leave a comment:


  • freqzz
    replied to OpenGL + Triangulation
    in C
    That does not even come close to my requirement. But thanks. I just want to wrap a combination of Triangle....
    See more | Go to post

    Leave a comment:


  • freqzz
    replied to OpenGL + Triangulation
    in C
    I have finish created a fully fuctioniol OpenGL program with some camera movement. Now how do I texture the triangle?

    Code:
    
    #include <windows.h> 
    #include <gl\gl.h>
    #include <gl\glut.h>
    #include <stdlib.h>
    #include <math.h>
    #include <vector>
    #include <iostream.h>
    #include <fstream.h>
    #include <stdio.h>
    ...
    See more | Go to post

    Leave a comment:


  • freqzz
    replied to OpenGL + Triangulation
    in C
    Thanks. It does help a bit. I'll modify 2-3 things before posting the code back. I'll keep this updated.
    See more | Go to post

    Leave a comment:


  • freqzz
    replied to OpenGL + Triangulation
    in C
    This is part of code where I want to read a Triangle table from textfile and plot it to draw a triangle. From there, i would like to texture the triangle and build a camera movement.

    But now, i'm stuck at the point where a i couldnt pass the x,y,z valu for drawing.
    See more | Go to post

    Leave a comment:


  • freqzz
    started a topic OpenGL + Triangulation
    in C

    OpenGL + Triangulation

    Code:
    #include <windows.h> 
    #include <gl\gl.h>
    #include <gl\glut.h>
    #include <stdlib.h>
    #include <math.h>
    #include <vector>
    #include <iostream.h>
    #include <fstream.h>
    #include <stdio.h>
    
    
    
    struct Point3D
    {
    	float x, y, z;
    };
    
    struct Triangle
    {
    	char name[10];
    ...
    See more | Go to post

  • freqzz
    replied to fstream to array
    in C
    Code:
    #include <windows.h> 
    #include <gl\gl.h>
    #include <gl\glut.h>
    #include <math.h>
    #include <iostream.h>
    #include <fstream.h>
    
    
    
    
    void read(void)
    {
    
    	int i;
    
    	float x1,y1,z1;
    	float x2,y2,z2;
    	float x3,y3,z3;
    	
    
    	ifstream inStream;
    	inStream.open ("sample.txt",
    ...
    See more | Go to post

    Leave a comment:


  • freqzz
    started a topic fstream to array
    in C

    fstream to array

    i got a little proble to implement memory allocation using array. Here's the situation, i got a sample data stored in textfile:


    tri1 (1,7,1) (2,8,2) (3,7,3)
    tri2 (2,8,2) (5,7,5) (3,7,3)
    tri3 (5,7,5) (3,5,2) (3,7,3)
    tri4 (3,7,3) (3,5,2) (1,7,1)
    tri5 (5,7,5) (5,5,7) (3,5,2)

    it is a triangulation table.. so later i'll plot it as a triangle..

    i would like to read the text...
    See more | Go to post
No activity results to display
Show More
Working...