[brlcad-devel] Introduction

2017-05-14 Thread Mario Meissner
Hello everyone! My name is Mario and I'm a Spanish university student. I am really interested in applying to the SOCIS program, especially for the Density Functions project. As soon as I have the available time (finals incoming!) I will try to build the source code and have a look at it. Are questi

[brlcad-devel] Problems while building on Windows

2017-06-19 Thread Mario Meissner
Hello everyone. I'm Mario Meissner, I have been elected to work for BRLCAD during the summer, in case SOCIS happens. Apparently, they are having administrative issues and the start of the coding period has been delayed. Anyway I decided to at least set myself up and start on my own. I'm

Re: [brlcad-devel] Problems while building on Windows

2017-06-19 Thread Mario Meissner
gards, Daniel 2017-06-19 12:50 GMT+02:00 Mario Meissner : > Hello everyone. > I'm Mario Meissner, I have been elected to work for BRLCAD during the > summer, in case SOCIS happens. Apparently, they are having administrative > issues and the start of the coding period has been d

Re: [brlcad-devel] Problems while building on Windows

2017-06-19 Thread Mario Meissner
refore, I'm afraid the answer is negative. > > > Regards, > Daniel > > 2017-06-19 12:50 GMT+02:00 Mario Meissner : > > Hello everyone. > > I'm Mario Meissner, I have been elected to work for BRLCAD during the > > summer, in case SOCIS happens. Apparently, t

[brlcad-devel] Raytracing throws error.

2017-06-21 Thread Mario Meissner
Hello! I'm working my way through the introductory guide, and I haven't been able to use raytracing. As I try to do as the guide tells me to, this error shows up: http://imgur.com/a/RGCBV , but only after a few minutes of waiting. I'm using Arch Linux (Antergos) x64. Am I missing a library? I had t

Re: [brlcad-devel] Raytracing throws error.

2017-06-21 Thread Mario Meissner
Hi Daniel. Following the compilation instructions, the built filesystem on linux doesn't yield any Release folder, just a bin folder. That folder contains dozens of executables, including mged and archer. However if you look at the screenshots I attached, you can see that on windows I do get a rele

Re: [brlcad-devel] Raytracing throws error.

2017-06-21 Thread Mario Meissner
I don't know if this helps but running rt separately works flawlessly. 2017-06-21 19:27 GMT+02:00 Mario Meissner : > Hi Daniel. > Following the compilation instructions, the built filesystem on linux > doesn't yield any Release folder, just a bin folder. That folder c

Re: [brlcad-devel] Raytracing throws error.

2017-06-22 Thread Mario Meissner
Ah, after going into Visual Studio and building the install target, the binaries showed up. Thank you! 2017-06-22 8:28 GMT+02:00 Daniel Roßberg : > > Following the compilation instructions, the built filesystem on linux > > doesn't yield any Release folder, just a bin folder. That folder contains

[brlcad-devel] Mentor

2017-07-10 Thread Mario Meissner
Hello everyone. I wanted to ask if anyone knows what happened with Christopher Sean? He is my mentor for SOCIS but I didn't get a reply from him for weeks now. Is he on vacation, or did something happen to him? Cheers, Mario. --

[brlcad-devel] SOCIS Start!

2017-07-11 Thread Mario Meissner
Greetings. I have set up a wiki page where I will publish the logs corresponding to my SOCIS 2017 contributions. I'll try to be somewhat detailed with it in the future so that the read is worth your while. http://brlcad.org/wiki/User:Mariomeissner/logs I'll make it prettier at some point as well.

[brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-13 Thread Mario Meissner
Hello. I have calculated the mass of an example of an heterogeneous object using a function that defines the density of an object in each point in space, and integration to obtain it's mass. You can see it here: https://drive.google.com/file/d/0Bz6hfFobLeoyZC1vQ1JwSU05NDg/view I believe that this

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-14 Thread Mario Meissner
d checking what you mentioned. Mario. 2017-07-14 9:03 GMT+02:00 Christopher Sean Morrison : > > On Jul 13, 2017, at 10:45 AM, Mario Meissner > wrote: > [snip] > However, as I do not yet understand how rtweight currently behaves, I do > not know if this model is viable and what ot

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-15 Thread Mario Meissner
Hi Sean. - You are right, given the endless possibilities of a function like this, it may not be obvious to define the function in the file as I mentioned. Some re-considerations would need to be made in order to support any number of arguments, any polynomial degree. Who knows, maybe

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-17 Thread Mario Meissner
Hello Sean. In the general case, we do not necessarily know the “shape" of the > geometry, particularly having an equation for the geometry to substitute in > a line equation like in your case. For example, the sword blade case might > be constructed as a union of several objects, like if you mod

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-17 Thread Mario Meissner
It took me way longer than it should have and I don't know how to round up the edges but here goes an initial rough model of the blade using two arb6 primitives. 2017-07-17 16:37 GMT+02:00 Mario Meissner : > Hello Sean. > > In the general case, we do not necessarily know the

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-17 Thread Mario Meissner
Mario. El 17 jul. 2017 22:06, "Christopher Sean Morrison" escribió: > > On Jul 17, 2017, at 2:42 PM, Mario Meissner wrote: > > It took me way longer than it should have and I don't know how to round up > the edges but here goes an initial rough model of the blade usin

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-18 Thread Mario Meissner
veral directions. Density at a specific point could be retrieved by combining vectors and the rate of change between two arbitrary points can be obtained through the vectors as well. Will send new blade soon. Mario. 2017-07-17 23:35 GMT+02:00 Christopher Sean Morrison : > > >

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-18 Thread Mario Meissner
Distal Taper. Mario. 2017-07-18 10:31 GMT+02:00 Mario Meissner : > Sean, > thank you for the extensive explanation, and sorry for the > misunderstanding. When you said that "instead of considering the ray line > lets consider segments" I thought that these segments wer

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-19 Thread Mario Meissner
We probably have some different ideas on how it should work, because of your "the largest value should be 3*V=9". I thought that if we have a horizontal vector going right, and a vertical vector going down, and we take the diagonal that goes the full distance down and right (so basically a 2D squar

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-19 Thread Mario Meissner
d that this is wrong (doesnt work for the half way diagonal example I mentioned above). Instead of just summing one on top of the other, we have to make the operations step by step and use the result of the first step as input for the second step. I'll send a fix in one hour for yesterda

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-21 Thread Mario Meissner
ithout feedback so I will try to make sense of the existing code in the meantime. Mario. 2017-07-19 13:40 GMT+02:00 Mario Meissner : > As promised, a patch (literally) for yesterdays document. Instead of the > sum used and explained in my last email I found it more convenient (appart >

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-26 Thread Mario Meissner
> This is flawed for one simple reason — material properties do not > multiply. At least, not for any common materials I can think of that we > care about. > The problem lies in the definition I gave to the vectors. I tried to use them like follows: If we have a vector that goes to the right with

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-26 Thread Mario Meissner
Sean, Today I started modifying rtexample.c so that it simulates a ray crossing several regions (tried with the goblet example) and returning the mass it saw as it crossed each region. I assumed most stuff with predefined constant values for now. Most changes happened at lines 115 and 179. Next

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-26 Thread Mario Meissner
02:00 Christopher Sean Morrison : > > > On Jul 26, 2017, at 10:59 AM, Mario Meissner > wrote: > > Sean, > > Today I started modifying rtexample.c so that it simulates a ray crossing > several regions (tried with the goblet example) and returning the mass it > saw a

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-27 Thread Mario Meissner
am curious how you would do it. We certainly need something more than just axis vectors, but it would complicate the contribution calculation a lot. For convenience, find them attached in this email again. Mario. 2017-07-26 19:02 GMT+02:00 Mario Meissner : > It was, indeed, just a problem

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-27 Thread Mario Meissner
Hi Sean! It's an extension that can be made after vectors are working. Basically > instead of treating them as vectors, you'll need to treat the as half space > plane definition. Calculating the density at any point will be the > contribution of any given set of points, and knowing which ones wi

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-27 Thread Mario Meissner
> > This is great, please keep sharing. This looks potentially like the > beginnings for what a proper material object (see TODO) might end up > requiring/using for the typein interface. > Which TODO do you mean? > Some feedback, you should use bu_fgets for portability. You're also also > not

[brlcad-devel] Compile Errors in winnt.c

2017-07-28 Thread Mario Meissner
Hello everyone. I'm facing an issue while trying to compile the whole solution in visual studio. There seem to be syntax errors inside winnt.h, a file I have never touched. These errors showed up since I first tried to compile with VS weeks ago, but never bothered me because they didn't interfere.

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-28 Thread Mario Meissner
Hi again. I fixed the issues I mentioned and the snippet now works as intended. Just compile and run rtexample to check it out. I'll continue with the next snipped I proposed unless you think I should do something else instead :P Mario. 2017-07-27 22:42 GMT+02:00 Mario Meissner : >

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-29 Thread Mario Meissner
> > I think you’re right on track. Your stubs in the code ( *_FACTOR and > MAT_DENSITY) naturally lend themselves to substitution with a function, and > implementing those functions figuring that out from your density_point > structure next would be a good progression. I’d suggest starting with 0

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-30 Thread Mario Meissner
> > After it’s working, that’s the next logical step. Don’t want to > scope-creep the complexity prematurely, but we will eventually want > material objects defining the density (and other) material characteristics > of an object (as a replacement for .density files and _DENSITY objects). > Sure.

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-07-30 Thread Mario Meissner
a valid vector in d? It feels wrong to make a new vector just to make the macro work. Mario. 2017-07-30 17:40 GMT+02:00 Mario Meissner : > After it’s working, that’s the next logical step. Don’t want to >> scope-creep the complexity prematurely, but we will eventually want >>

Re: [brlcad-devel] Compile Errors in winnt.c

2017-08-01 Thread Mario Meissner
Surprisingly, svn update solved the issue. My bad for not running the latest sources. Thank you! 2017-07-28 15:24 GMT+02:00 Christopher Sean Morrison : > > > On Jul 28, 2017, at 4:22 AM, Mario Meissner > wrote: > > > > Hello everyone. > > > > I'm fa

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-08-03 Thread Mario Meissner
me we just make vectors from all points to the first one. Will try to make a simple 4 point (origin and the three axis directions) example work. Mario. 2017-07-31 19:12 GMT+02:00 Mario Meissner : > Hello Sean! > > As you suggested, I reverted some of the changes I made (or rather, I &

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-08-04 Thread Mario Meissner
e discussion up. Stay safe! Mario. 2017-08-03 17:33 GMT+02:00 Mario Meissner : > Hi! > I also now added a curve to the blade by intersecting it with a stretched > out sphere. I considered various options but this one ended up being my > favorite. > Am not sure why the resolution of the s

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-08-04 Thread Mario Meissner
Is there a new version of the code demonstrating them working? Yes, it is attached to today's email. It should compile and produce an rtexample binary that runs the example I set up correctly. There are a variety of cases with 2points that should also be explored and ensure are being handled too

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-08-05 Thread Mario Meissner
of current code, the code itself, and the box I used. Output: https://puu.sh/x2n0W/406b7a0bb9.png Have a nice weekend! Mario. 2017-08-04 22:36 GMT+02:00 Mario Meissner : > > Is there a new version of the code demonstrating them working? > > > Yes, it is attached to today's emai

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-08-06 Thread Mario Meissner
It also has half the volume. So, 5e8 mm3 x 6.25g/mm3 = 3,125e9 g. https://puu.sh/x2Wp2/af48012d6a.png Cheers, Mario. 2017-08-05 19:11 GMT+02:00 Mario Meissner : > Hello again! > > I moved my code over to viewweight.c. For now I just put my density() > function alongside the other funct

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-08-07 Thread Mario Meissner
distance between the points? (as in, point b is closer to point B than it is to point A, so it gets more influence from it's vector). I'm attaching the example we talked about here again for your convenience. Mario. 2017-08-06 10:10 GMT+02:00 Mario Meissner : > Followup, > >

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-08-07 Thread Mario Meissner
I would also like to get some more info about how you mentioned we could model those complex examples I sent. You said something about half-spaces...How would it work exactly? 2017-08-07 14:47 GMT+02:00 Mario Meissner : > Hi again! > > A few questions: > >- If I were t

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-08-08 Thread Mario Meissner
Hey Sean! Glad to hear back from you! Hope your trip went fine. Tons of new information! Let me try to dig through it. Both this prior version and the latest viewweight.c suffer from the comment > I originally made, namely that the 0 and 1 point cases are not what i would > call “complete". That’

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-08-09 Thread Mario Meissner
Hi Sean! Thank you a lot for the details. The visualization of Voronoi points was really helpful. I think I understand your vision and will work on implementing the first steps as soon as the stuff I mention below is done. I'm running into some trouble with my code. I need to call readDensityValu

Re: [brlcad-devel] Example of heterogeneous density + mass calculation

2017-08-11 Thread Mario Meissner
My last two emails (of today and yesterday) got accidentally sent only to myself (I probably pressed reply to an email from myself and it somehow didn't get sent to the mailing list). I will now re-send them to the mailing list. Sorry for this. Mario. 2017-08-09 23:04 GMT+02:00 Mario Mei

[brlcad-devel] Fwd: Example of heterogeneous density + masscalculation

2017-08-11 Thread Mario Meissner
-- Forwarded message -- From: MarioPC Date: 2017-08-10 20:33 GMT+02:00 Subject: RE: [brlcad-devel] Example of heterogeneous density + masscalculation To: Mario Meissner Okay, So since stuff doesn’t seem to work very well on viewweight yet, and since we need to heavily modify

Re: [brlcad-devel] Example of heterogeneous density + masscalculation

2017-08-11 Thread Mario Meissner
:26 GMT+02:00 Mario Meissner : > > -- Forwarded message -- > From: MarioPC > Date: 2017-08-10 20:33 GMT+02:00 > Subject: RE: [brlcad-devel] Example of heterogeneous density + > masscalculation > To: Mario Meissner > > > Okay, > > So since stu

Re: [brlcad-devel] Example of heterogeneous density + masscalculation

2017-08-11 Thread Mario Meissner
ly today's code is not yet working. I send it anyways in the hopes of receiving much appreciated feedback. 2017-08-11 23:28 GMT+02:00 Mario Meissner : > Sean, > > I’ve started working on Voronoi model for non-continuous density > evaluation using points. For now only 0 and

[brlcad-devel] Heterogeneous densities

2017-08-11 Thread Mario Meissner
Hello Sean. Things got a bit messy on the previous thread, I apologize for that. I somehow managed to send emails only to myself for the last three days. I decided to start a new fresh thread and include the text of the last three emails here, as well as the newest code I have. It is a new iterati

Re: [brlcad-devel] Heterogeneous densities

2017-08-14 Thread Mario Meissner
08-11 23:46 GMT+02:00 Mario Meissner : > Hello Sean. > Things got a bit messy on the previous thread, I apologize for that. > I somehow managed to send emails only to myself for the last three days. > > I decided to start a new fresh thread and include the text of the last > three e

Re: [brlcad-devel] Heterogeneous densities

2017-08-15 Thread Mario Meissner
need some feedback now, hope you'll have some time to review this. https://puu.sh/xaUwS/c2f30fc275.png Mario. 2017-08-14 19:44 GMT+02:00 Mario Meissner : > The sorting function is now correctly implemented and works as expected > with projection structs, sorting them by distance to inhit.

Re: [brlcad-devel] Heterogeneous densities

2017-08-17 Thread Mario Meissner
p and then the first point of my proposed steps. Attached goes code with minor cleanup changes over yesterday. If possible, use this for review. Happy coding! Mario. 2017-08-15 22:28 GMT+02:00 Mario Meissner : > Sean! > Implemented the math and did some bug hunting. I successfully ran an

Re: [brlcad-devel] Heterogeneous densities

2017-08-18 Thread Mario Meissner
lcome so I don't step too deep into the mud. Mario. 2017-08-17 12:28 GMT+02:00 Mario Meissner : > So I think now that n-points are working for convex regions, I think the > next steps would be: > >- Integrate vectors into existing point system. > - Let the

Re: [brlcad-devel] Heterogeneous densities

2017-08-18 Thread Mario Meissner
the elements in the order I pushed them. Do I need to use APPEND and keep a pointer to my last added element to get the behaviour I need? Why? Mario. 2017-08-18 13:38 GMT+02:00 Mario Meissner : > Good morning / afternoon ! > > I've started considering the inclusion of vectors into th

Re: [brlcad-devel] Heterogeneous densities

2017-08-18 Thread Mario Meissner
the vector, but ... how and where? Is there any example available? I tried looking for it but didn't find anything. I hope you'll find some time to discuss this soon. Mario. 2017-08-18 17:40 GMT+02:00 Mario Meissner : > Hello everyone. > Quick question regarding bu_lists. > &

Re: [brlcad-devel] Heterogeneous densities

2017-08-18 Thread Mario Meissner
8-18 19:02 GMT+02:00 Mario Meissner : > Sean, > So I've given the transition concept a deep thought and I think I may have > found one way it could work. > We define a transition object that links to two points and has a float > value stored. This value indicates the rate of c

Re: [brlcad-devel] Heterogeneous densities

2017-08-19 Thread Mario Meissner
ng to Germany to start one academic year abroad. I hope to be able to set myself up there quickly to continue working on this. Cheers! Mario. On 18 August 2017 at 21:44, Mario Meissner wrote: > I found a flaw in my current code. > I considered all points to be valid and projected them

Re: [brlcad-devel] Heterogeneous densities

2017-08-29 Thread Mario Meissner
ant I think this way would be sufficient and really easily implementable. The example I'll send this afternoon may prove me wrong, in which case I'll consider the mesh. I think I can implement this and leave the code clean before leaving. Thank you for your feedback! Mario. On 20 August

Re: [brlcad-devel] Heterogeneous densities

2017-08-29 Thread Mario Meissner
know what you think, I'll start working on it. Mario. On 29 August 2017 at 15:44, Mario Meissner wrote: > Hi Sean! > Back from my trip now. > > The reason why I worked on projections is because you told me to do so: > > Not the distance between points, but distance to the

Re: [brlcad-devel] Heterogeneous densities

2017-08-29 Thread Mario Meissner
think it's easier this way (it's a quite simple O(1) operation) than to > compute the actual mesh and then evaluate against it. It probably would me > more elegant and maybe more efficient but it seems much more complex to me. > > Let me know what you think, I'll start wo

Re: [brlcad-devel] Heterogeneous densities

2017-08-30 Thread Mario Meissner
this case. More thorough tests with non-mid-point boundaries will follow. Mario. On 29 August 2017 at 18:05, Mario Meissner wrote: > Made a mistake in the last line, should be: > PR1B = (- DP1PR1^2 + DP2PR2^2 + PR2PR1^2) / (2 * PR2PR1) > > Sorry for the confusing nomenclature. >

Re: [brlcad-devel] Heterogeneous densities

2017-09-02 Thread Mario Meissner
xt. Mario. On Sep 1, 2017 09:58, "Christopher Sean Morrison" wrote: > > On Aug 30, 2017, at 6:38 AM, Mario Meissner wrote: > > Implemented the mentioned changes and fixed projections not being skipped > correctly when they should. Unless my next tests fail, I think this

[brlcad-devel] Trouble setting up VStudio

2017-09-03 Thread Mario Meissner
Hello everyone. As you may have seen in my previous emails, I moved to Germany on the 1st of this month. I am finally settled in my new place and am now setting up my working environment on my laptop. I am facing an issue with Visual Studio when I try to build the solution. For now, and since my

Re: [brlcad-devel] Trouble setting up VStudio

2017-09-04 Thread Mario Meissner
> > Interesting. May I ask in which area of Germany? > In München! Interesting. That looks like it is trying to execute the awk script > in libpng's build, but that shouldn't happen on Windows normally... > Do you have some Windows version of awk installed? So apparently I do. https://puu.s

Re: [brlcad-devel] Trouble setting up VStudio

2017-09-06 Thread Mario Meissner
ke can not determine linker language for target: png CMake Error: CMake can not determine linker language for target: png_static Interestingly enough on the Ubuntu subsystem it works just fine. Mario. On Sep 4, 2017 5:13 PM, "Mario Meissner" wrote: > Interesting. May I ask i

Re: [brlcad-devel] Heterogeneous densities

2017-09-06 Thread Mario Meissner
cases should be correctly handled by my later boundary calculation formula, so it should suffice to find a better projection skipping method. I'm however struggling to find one. Do you have any suggestions? Mario. On 5 September 2017 at 22:52, Mario Meissner wrote: > Hello again! > Now

Re: [brlcad-devel] Heterogeneous densities

2017-09-06 Thread Mario Meissner
ave them to use them for the boundary calculation phase, replacing my current equation. We can think about it later. I will start working on this unless you think there is a superior approach to this. Mario. On 6 September 2017 at 17:33, Mario Meissner wrote: > Hey Sean! > > I ident

Re: [brlcad-devel] Heterogeneous densities

2017-09-07 Thread Mario Meissner
idn't find anything that could help me. Do you know any macro that could be useful here? Otherwise I will need to make some of my own for this! If so, any ideas on how to approach it? Mario. On 6 September 2017 at 18:39, Mario Meissner wrote: > After considering a dozen of different optio

Re: [brlcad-devel] Trouble setting up VStudio

2017-09-08 Thread Mario Meissner
I forgot to reply to this yesterday. r70209 fixed all my problems. Build successful on all platforms (with mingw still installed). Thank you a lot! Mario. On 6 September 2017 at 13:18, Clifford Yapp wrote: > On Wed, Sep 6, 2017 at 5:58 AM, Mario Meissner > wrote: > > I notice

Re: [brlcad-devel] Heterogeneous densities

2017-09-08 Thread Mario Meissner
Hi Daniel! Thank you a lot for your reply. I was focused on generating the bisector to intersect two lines, but intersecting the actual plane is much simpler. I made a little function to intersect a plane with a line (partially taken from this stackoverflow post

Re: [brlcad-devel] Heterogeneous densities

2017-09-08 Thread Mario Meissner
probably should keep looking for flaws by setting up other examples, and while doing so I should also clean it up a bit since the code grew over 600 lines now, quite difficult to read and understand. Screenshot: https://puu.sh/xuIXk/9626ce2fb6.png Mario. On 8 September 2017 at 19:56, Mario Me

Re: [brlcad-devel] Heterogeneous densities

2017-09-15 Thread Mario Meissner
ity file. https://puu.sh/xAmiE/b5fa0dfab8.png Mario. On 8 September 2017 at 21:04, Mario Meissner wrote: > Peopleee! > > Here goes today's work. I'm proud to announce the example I modeled a few > days ago now works correctly!! > Code still contains my debug prints and l

Re: [brlcad-devel] Heterogeneous densities

2017-09-21 Thread Mario Meissner
it safe? Finally, I think I could need some help regarding the negative values issue, at least once I'm sure the two points above aren't the cause. Mario. On 17 September 2017 at 21:16, Mario Meissner wrote: > After my linux build decided to not compile anymore (and haven't be

Re: [brlcad-devel] Heterogeneous densities

2017-09-21 Thread Mario Meissner
Hi Daniel. Thank you for your response. Negative values may have been only due to using the wrong formatting tag while printing values. I have cleaned up some unused variables and fixed the intersection by using your suggestion. Mass is 0 in the total_weight variable, as if the code wasn't really

Re: [brlcad-devel] Heterogeneous densities

2017-09-21 Thread Mario Meissner
#x27;t use its > intersect flag. But what is really bad is that you don't free it if it > won't be used any more. > > BTW, do you have a Chinese OS version? Your diff files contain Chinese > comments. > > > Regards, > Daniel > > > 2017-09-21

Re: [brlcad-devel] Heterogeneous densities

2017-09-22 Thread Mario Meissner
Hello! Mass being 0 all the time was because the reg_los of my region was 0 for whatever reason. Hard-coding a reg_los of 100 (and thus a 'factor' of 1) works and I now get a mass value (however unfortunately not the value I expect, yet). Attached goes code. Any hints on why the reg->reg_los isn't

Re: [brlcad-devel] Heterogeneous densities

2017-09-22 Thread Mario Meissner
e the points for the call, or pass the coordinates one by one as actual numbers? On 22 September 2017 at 17:07, Mario Meissner wrote: > Hello! > > Mass being 0 all the time was because the reg_los of my region was 0 for > whatever reason. Hard-coding a reg_los of 100 (and thus a '

Re: [brlcad-devel] Heterogeneous densities

2017-09-22 Thread Mario Meissner
> > What I meant was: Why has your intersection_t struct an intersect member? > You don't use it. > I wanted to use it as a surrogate for your NULL return value but what was > your reason? > I just didn't really know what that intersect member was in your example. So I just set it to 0 in the hope

Re: [brlcad-devel] Heterogeneous densities

2017-09-23 Thread Mario Meissner
> > I'm passing two arguments to my segment_density, which are inhit and > outhit points. > I now realize that these are pointers and could change unexpectedly within > the call if we run multiple threads. > How can I make this safe? Should I BU_GET safe heap memory to store the > points for the ca

Re: [brlcad-devel] Heterogeneous densities

2017-09-23 Thread Mario Meissner
cepts, makes it all more readable, and most importantly, will support more situations than before, removing several flaws. Mario. On 23 September 2017 at 18:01, Mario Meissner wrote: > I'm passing two arguments to my segment_density, which are inhit and >> outhit points. >> I

Re: [brlcad-devel] Heterogeneous densities

2017-09-25 Thread Mario Meissner
. I have yet to come up with a more elegant way of checking which 'tiles' our segment will cross and which not. Back with more tomorrow. Mario. On 23 September 2017 at 20:20, Mario Meissner wrote: > Hello everyone. > > I wrote this on my log a few hours ago but I thought it&#x

Re: [brlcad-devel] Heterogeneous densities

2017-10-01 Thread Mario Meissner
Hi! I forgot to mention it before leaving. I went on a spontaneous trip to Prage for a few days. I will be back with more updates on monday. Mario. On 25 September 2017 at 13:13, Mario Meissner wrote: > Attached goes new code with the changes I mentioned. Only tested once on a > simpl

Re: [brlcad-devel] Heterogeneous densities

2017-10-02 Thread Mario Meissner
re it. This algorithm would be the last piece of the puzzle to finish off the project. Mario. On Oct 1, 2017 16:23, "Mario Meissner" wrote: Hi! I forgot to mention it before leaving. I went on a spontaneous trip to Prage for a few days. I will be back with more updates on monday.

Re: [brlcad-devel] Heterogeneous densities

2017-10-06 Thread Mario Meissner
7 at 23:14, Mario Meissner wrote: > So I ended up designing a new algorithm and would love to get some > feedback before I implement it. > Here it goes: > > * Sort the points from 'left to right' (distance of projection to inhit) > * Look for the closest point to in

Re: [brlcad-devel] Heterogeneous densities

2017-10-06 Thread Mario Meissner
Daniel Roßberg wrote: > spectrum.c was recently removed. So, update your checked out sources and > check your librt CMakeaLists.txt that it matches with the one on the head > of the reposity (you've probably made changes to it). > > Regards, > Daniel > > Am

Re: [brlcad-devel] Heterogeneous densities

2017-10-09 Thread Mario Meissner
lways, feedback welcome. Thank you, Mario. On 6 October 2017 at 19:41, Mario Meissner wrote: > Hi Daniel, > thank you! In the end the problem was that I didn't run cmake after svn > up. > > Attached goes today's work. I coded the function 'region_boundary()'

Re: [brlcad-devel] Heterogeneous densities

2017-10-11 Thread Mario Meissner
ttent basis. This week I will integrate my code into rtweight. Mario On Oct 9, 2017 11:05, "Mario Meissner" wrote: > Hi people! > > I proudly present my latest work, attached here. It features a clean > algorithm to compute the average density of a segment that goes t

Re: [brlcad-devel] Heterogeneous densities

2017-10-13 Thread Mario Meissner
7 at 09:52, Mario Meissner wrote: > Hello everyone. > > I received an email from the SOCIS organizer saying that the coding period > is finishing really soon. However I haven't received any news from your > side. What is gonna happen now? Can we (and will we if so) extend it

Re: [brlcad-devel] Heterogeneous densities

2017-10-13 Thread Mario Meissner
> > I talked with Adam yesterday and gave him an update and ETA on the report. > > Cheers! > Sean > > On Oct 13, 2017, at 11:42 AM, Mario Meissner > wrote: > > Hello again! > > Attached code is cleaner and more thoroughly tested. > This is what I will implement into

Re: [brlcad-devel] Heterogeneous densities

2017-10-15 Thread Mario Meissner
discussed. Code attached!!! Mario Meissner. On 14 October 2017 at 08:12, Mario Meissner wrote: > Hi Sean, > > Thank you for the update! I will come back with more changes today. > > Cheers! > > On Oct 13, 2017 21:02, "Christopher Sean Morrison" wrote: > >>

Re: [brlcad-devel] Heterogeneous densities

2017-10-16 Thread Mario Meissner
Hello Sean, I wonder if I should continue working on rtweight now, or if the report can be written with the code in the current state. If so, we would need to discuss what changes should come next, and how. Thanks, Mario. On 15 October 2017 at 19:58, Mario Meissner wrote: > Hello ag