Re: [brlcad-devel] Help understanding code
PS: I originally suggested the 'eto' primitive because it is useful to design vehicle wheels. But other people who have been around here longer than I have can better suggest you which primitives are most useful to implement. Sean and Erik were my GSoC mentors last year. They should know that better. Regards, -Vasco Costa On Mon, Mar 7, 2016 at 7:30 PM, Vasco Alexandre da Silva Costa < vasco.co...@gmail.com> wrote: > On Mon, Mar 7, 2016 at 11:28 AM, Param Hanji> wrote: > >> Hi, >> >> I've managed to accelerate "librt/primitives/epa". I now need to create >> an ID for it in "primitives/rt.cl". It's okay if I define it with ID 40 >> right(on line 94)? >> >> I've also made changes to "primitives/common.cl", >> "librt/CMakeLists.txt", "primitives/primitive_util.c" and >> "primitives/epa/epa.c". Are there any other changes required? >> > > Not that I can think of. Test the code (e.g. inside mged type 'make epa > epa'; then render it with 'rt' with and without OpenCL acceleration). Can > you get us a screenshot? > > Once everything is working ok you can create a patch in unified diff > format e.g. with 'diff -Nurd' and then submit it to the BRL-CAD patch > tracker at: > https://sourceforge.net/p/brlcad/patches/ > > All the best, > -Vasco Costa > > >> And grep really helped. Thank you :) >> >> On Sun, Mar 6, 2016 at 5:20 AM Vasco Alexandre da Silva Costa < >> vasco.co...@gmail.com> wrote: >> >>> PS: When I was starting out programming in this project I used the >>> NetBeans IDE to browse the BRL-CAD source code so I could understand the >>> code structure better. As a last resort grep is your friend... >>> >>> On Sat, Mar 5, 2016 at 10:25 PM, Vasco Alexandre da Silva Costa < >>> vasco.co...@gmail.com> wrote: >>> The primitives folder has the primitive implementation code. See librt/primitives/primitive_util.c for the OpenCL C calls proper. On Sat, Mar 5, 2016 at 7:10 AM, Param Hanji wrote: > Hello, > > I was going through the code in librt/primitives folder. The OpenCL > specific code seems very unfamiliar to me. > > Granted I'm new to OpenCL and large open source projects like this > one, I still find it harder to understand than what I expected. > > "ell.c" nor any of the other files here contain code to create and > configure the OpenCL data structures(for device, kernel, context etc). > There no function calls like clCreateContext, clGetPlatformIDs, > clGetDeviceIDs. > The .cl file also doesn't have kernel functions as well. So I just > don't know where to start. > > Is my working of knowledge of OpenCL wrong/outdated? Are there > resources I can refer to? Any help would be great. Thank you for your > time! > > Best, > Param Hanji > -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal >>> >>> >>> >>> -- >>> Vasco Alexandre da Silva Costa >>> PhD in Computer Engineering (Computer Graphics) >>> Instituto Superior Técnico/University of Lisbon, Portugal >>> >> > > > -- > Vasco Alexandre da Silva Costa > PhD in Computer Engineering (Computer Graphics) > Instituto Superior Técnico/University of Lisbon, Portugal > -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel
Re: [brlcad-devel] Help understanding code
On Mon, Mar 7, 2016 at 11:28 AM, Param Hanjiwrote: > Hi, > > I've managed to accelerate "librt/primitives/epa". I now need to create an > ID for it in "primitives/rt.cl". It's okay if I define it with ID 40 > right(on line 94)? > > I've also made changes to "primitives/common.cl", "librt/CMakeLists.txt", > "primitives/primitive_util.c" and "primitives/epa/epa.c". Are there any > other changes required? > Not that I can think of. Test the code (e.g. inside mged type 'make epa epa'; then render it with 'rt' with and without OpenCL acceleration). Can you get us a screenshot? Once everything is working ok you can create a patch in unified diff format e.g. with 'diff -Nurd' and then submit it to the BRL-CAD patch tracker at: https://sourceforge.net/p/brlcad/patches/ All the best, -Vasco Costa > And grep really helped. Thank you :) > > On Sun, Mar 6, 2016 at 5:20 AM Vasco Alexandre da Silva Costa < > vasco.co...@gmail.com> wrote: > >> PS: When I was starting out programming in this project I used the >> NetBeans IDE to browse the BRL-CAD source code so I could understand the >> code structure better. As a last resort grep is your friend... >> >> On Sat, Mar 5, 2016 at 10:25 PM, Vasco Alexandre da Silva Costa < >> vasco.co...@gmail.com> wrote: >> >>> The primitives folder has the primitive implementation code. See >>> librt/primitives/primitive_util.c for the OpenCL C calls proper. >>> >>> On Sat, Mar 5, 2016 at 7:10 AM, Param Hanji >>> wrote: >>> Hello, I was going through the code in librt/primitives folder. The OpenCL specific code seems very unfamiliar to me. Granted I'm new to OpenCL and large open source projects like this one, I still find it harder to understand than what I expected. "ell.c" nor any of the other files here contain code to create and configure the OpenCL data structures(for device, kernel, context etc). There no function calls like clCreateContext, clGetPlatformIDs, clGetDeviceIDs. The .cl file also doesn't have kernel functions as well. So I just don't know where to start. Is my working of knowledge of OpenCL wrong/outdated? Are there resources I can refer to? Any help would be great. Thank you for your time! Best, Param Hanji >>> >>> >>> >>> -- >>> Vasco Alexandre da Silva Costa >>> PhD in Computer Engineering (Computer Graphics) >>> Instituto Superior Técnico/University of Lisbon, Portugal >>> >> >> >> >> -- >> Vasco Alexandre da Silva Costa >> PhD in Computer Engineering (Computer Graphics) >> Instituto Superior Técnico/University of Lisbon, Portugal >> > -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel
Re: [brlcad-devel] Regarding OVG
Hey, I have been studying NURBs, I think it has not been working with current OGV, Can someone please tell me the details. On Mar 7, 2016 2:07 PM, "chintan zaveri"wrote: > Hey Divam, > Can you please guide me on the script part? > As I deployed the app on ubuntu system, what issues you faced on freebsd? > -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel
Re: [brlcad-devel] Introduction
On Mon, Mar 7, 2016 at 7:43 AM, Daniel Roßbergwrote: > A summary of the GSoC 2013 project can be found here: > http://brlcad.org/wiki/User:Vladbogolin/GSoC2013/qt-display-manager > > Daniel Thanks Daniel. -- Jasvir Singh Grewal -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval ___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel
Re: [brlcad-devel] Introduction
On Sun, Mar 6, 2016 at 10:11 AM, Inderpreet Singhwrote: > There's a high priority project for incorporating Qt with mged. I am > eagerly waiting for that project to take it's shape. I don't know much > about it but there has been some work done on incorporating Qt and the > code is on Sourceforge. You can find more information in wiki and also > communicating with the devs at IRC. Thanks Inderpreet. I would love to work on your advice. -- Jasvir Singh Grewal -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval ___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel
[brlcad-devel] Interested in STEP Source Code Documentation under BRL-CAD [GSoc 2016]
Hello, My name is Manpreet Kaur pursuing Master of Computer Applications at Guru Nanak Dev Engineering College, Ludhiana. I have worked on Python , C++ and Doxygen. I have a good command on Doxygen for Python and C++ languages. I found Doxygen related project in GSoc under BRL-CAD. I read your project idea for STEP Source Code Documentation. You require advance feature of Doxygen in your project. So, I am interested to do work on STEP Source Code Documentation project. As it is based on Doxygen. And I deal with Doxygen to create documentation of Python, C++ project. I did this 6 month ago. Now I want to do work on doxygen with advance features that is discussed in STEP Source Code Documentation. Please tell me what are your other requirements and guide me for the same. Thank you, -- Manpreet Dhiman. Gmail: manpreet9...@gmail.com. Blog: https://manpreet9112.wordpress.com -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval ___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel
[brlcad-devel] About Plate Mode NURBS raytracing
Hi, I am a PhD student majoring in computer graphics, I am so interested in Plate Mode NURBS raytracing and want to get involved in this project. As suggested by @starseeker, I have tried to do raytracing with BoTs(a flat plane with few trangles) both in plate mode and normal mode, yes, they are different. After disscussing with @starseeker, I almost get the gist of plate mode, it uses *thickness* to describe a kind of property of infinitely thin surface, so when doing raytracing, we can get in/out hit point. (Thanks for reminding me BRL-CAD is used for solid modeling, what we want is a solid model but not a single surface.) Then, I follow the code(rtshot.c) step by step, and have some problems listed as follows? 1. it seems to check the enclosure of surface at the beginning of raytracing for BoTs, for example, if I want to add plate mode for NURBS, do I need to check if the NURBS surface is closed first? 2. besides, I find that, for BoTs, the *thickness* for each triangle is the same(self-defined by me cause I use obj-g to generate BRL-CAD database), then I want to know do we need an adaptive method the define the *thickness* with a given threshold, for example, considering different surface area with different curvature, maybe we need to handle it differently? I also have tried 'extreme_ssi_test.g', this database consists two non-closed NURBS surfaces, I try to use rtshot to do raytracing, but it does not hit anything. I am a little bit confused, why can't we even get one hit point? Another example is 'brep_cobb', it consists six discreted NURBS surfaces but contains a volume, I also do the same thing, but now I can get the hit points(both in and out point). So from this, I mean, the closure of NURBS surface is so important for raytracing scheme? With @starseeker's suggestion and my own understanding, we have two methods so far for NURBS plate mode raytracing. The first one is, after finishing the first hit, along the ray direction and forwarding *thickness* distance to get the second(out) hit point(Maybe it is similar to the operation of BoTs). Another is the hit has a normal, and we can take the *thickness* value and generate two new points, one back in the direction of surface normal, and the other in the opposite direction normal, that is to say, the hit point becomes a mid-point now. And I am so interested in NURBS plate mode, so could you please give me some suggestions? Or where can I start now? I know brep.cpp is a collection of NURBS operations, maybe it is a good start.. Besides, could you give me some hints on how to proceed and something that I need to pay attentions to? Thanks. Best, Bojian -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel
Re: [brlcad-devel] Introduction
A summary of the GSoC 2013 project can be found here: http://brlcad.org/wiki/User:Vladbogolin/GSoC2013/qt-display-manager Daniel 2016-03-06 19:11 GMT+01:00 Inderpreet Singh: > On Wed, Mar 2, 2016 at 10:57 AM, Jasvir Singh wrote: >> From last 2.5 years, I have been >> working on Django, Python, C++ and Qt. Most of the time I work on web >> applications and now I am trying my hands on web security. I > > There's a high priority project for incorporating Qt with mged. I am > eagerly waiting for that project to take it's shape. I don't know much > about it but there has been some work done on incorporating Qt and the > code is on Sourceforge. You can find more information in wiki and also > communicating with the devs at IRC. > > -- > Inderpreet Singh > > Ekoankar Sahai > ishwerdas.com > facebook.com/okayinder > https://kippt.com/okayinder > > -- > ___ > BRL-CAD Developer mailing list > brlcad-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/brlcad-devel -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval ___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel
Re: [brlcad-devel] google summer of code : Geometry Conversion Library
Margaret, >> 1. cat src/conv/conv_lib/Makefile (create a conv_lib directory for the >> project) >>> Note that we use the CMake build system, which you can read about online. >>> Instead of putting build logic into Makefiles, we put the logic into >>> CMakeLists.txt files and CMake gives us Makefiles, MS Studio Files, XCode >>> files, ninja files, etc. > > will investigate CMake online, should not be too hard, will first try to > build all executables from source in Ubuntu 14.04, (I downloaded > brlcad-7.24.2.tar.gz). Can you point me the documentation of the build > process, such as : configure, make all, make install. You should use our Subversion repository instead. You can find a short how-to together with some CMake build basics here: http://brlcad.org/wiki/Building_from_SVN Regards, Daniel -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval ___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel
[brlcad-devel] (no subject)
Hello, I'm interested in the 2016 GSOC project "General Tree Walker". I have good knowledge of c programming. I will like to know if it is a good/priority project or not! Cheers! Ludovic -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel
[brlcad-devel] Regarding OVG
Hey Divam, Can you please guide me on the script part? As I deployed the app on ubuntu system, what issues you faced on freebsd? -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel