Hello Raweiss99,

Thank You for accepting my proposal.

I want to discuss some points about my project with you.

1. I have brlcad-7.20.2 installed in my computer. And Installation
directory is /usr/brlcad/
2. As I couldn't completed my patch earlier before results, I have worked
on a trial patch. Attached file is the C Program for patch.
   What I did is the following :-

a.) I checked brlcad/usr/libbu/ directory. Selected function bu_image_save
for testing from image.c.
b.) Using below command I confirmed that image.c has been compiled.
              $ nm -D /usr/brlcad/lib/*.so | grep bu_image_save
c.) Later I set the LD_LIBRARY_PATH variable.
d.) Now I compiled test file using command given below
             $ gcc -I /usr/brlcad/include/ test.c -L /usr/brlcad/lib -lbu

3. As the output of the program, I was able to write a png image. I had an
array of size 400 which I had initialized to zeros.  I create a png image
of size 20x20. Now, this program generates a black 20x20 image.
4. I would like to work on following tasks before 21st may :-

a.) I want to try some more functions for test patch and compile manually
with method described above. Later I would try corresponding
CMakeListes.txt build file.
b.) I will work on compiling and running BRL-CAD. I will work on being
familiar with basics of subversion.
c.) I will be working on small succinct patches to engender trust with
existing developers. So that I can start coding at right time.
d.) And I will follow some other steps from
http://brlcad.org/wiki/Summer_of_Code/Checklist.

5. I want to know, on what kind of design documents I will have to work on
before coding.
6. As I described in my proposal I have my end-semester examination until
May 6. So I'll be little busy in this duration. I hope you will understand.
After this I assure you to be available as promised in my proposal.
7. If you have any suggestion or want share any Linux command (or link)
useful for this project, please share I would be delighted.
8. Once Again Thank You very much. I'm really grateful for your trust.


regards
-- 
*Anoop Malav*
/*
 * Test Patch
 * Function bu_image_save is used from libbu/image.c
 * This program generates a black 20x20 image and saves it
 */

// brlcad header-files
#include <brlcad/common.h>
#include <brlcad/bu.h>

// other required header files
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>


int main(int argc, char *argv[])
{
    unsigned char black[400];
    int i;
    for( i=0 ; i<400 ; i++ ) //initialize array named as black
        black[i] = 0;

    // Create an empty test png file.
    //int open(const char *pathname, int flags);
    int fd = open( "test.png", O_CREAT );

    // Save it using brlcad function
    // bu_image_save(unsigned char *data, int width, int height, int depth, char *filename, int filetype)
    int out = bu_image_save( black, 20,20,1,"/home/virus/test.png", 0 );
    printf("%d\n",out);
}
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to