Re: [brlcad-devel] triangulation/tesselation of a sketch primitive

2012-07-06 Thread Matt Shepit
Exactly! So, you have a few options of course, but I think Sean has the path of least resistance. There was quite a bit about this sort of thing (in very practical terms) in a gmsh document that I can't seem to find online right now. I have a printed copy at work though, so I'll have a look on mon

Re: [brlcad-devel] triangulation/tesselation of a sketch primitive

2012-07-06 Thread Christopher Sean Morrison
On Jul 6, 2012, at 11:01 PM, crdueck wrote: > I've begun working on an analysis function for the sketch primitive. To > compute its area, Sean suggested creating a tesselation. Could someone > describe the method for doing this? My first take at it would be to > choose one vertice and draw a l

Re: [brlcad-devel] triangulation/tesselation of a sketch primitive

2012-07-06 Thread crdueck
that's correct, which is why it wouldnt work on a dumbell shaped sketch for example. On 07/06/2012 11:06 PM, Matt Shepit wrote: Hi Chris, I think what you have described would only work if the sketch described a region that was strictly convex, which is a rather large restriction... -Matt-

Re: [brlcad-devel] triangulation/tesselation of a sketch primitive

2012-07-06 Thread Matt Shepit
Hi Chris, I think what you have described would only work if the sketch described a region that was strictly convex, which is a rather large restriction... -Matt- On Sat, Jul 7, 2012 at 1:01 PM, crdueck wrote: > hello all, > > I've begun working on an analysis function for the sketch primitive

[brlcad-devel] triangulation/tesselation of a sketch primitive

2012-07-06 Thread crdueck
hello all, I've begun working on an analysis function for the sketch primitive. To compute its area, Sean suggested creating a tesselation. Could someone describe the method for doing this? My first take at it would be to choose one vertice and draw a line from each other vertice to it to crea

Re: [brlcad-devel] [brlcad-commits] SF.net SVN: brlcad:[51436]brlcad/trunk/src/librt/primitives/part/part.c

2012-07-06 Thread crdueck
sean, thats correct, and the formula i've used is the same, but with the common (PI * r^2) term factored out. in the case of the circular raytrace that Wu described, which volume/surface area should be calculated? the one for the shape resulting from the raytrace, or the wireframe? thanks,

Re: [brlcad-devel] [brlcad-commits] SF.net SVN: brlcad:[51436]brlcad/trunk/src/librt/primitives/part/part.c

2012-07-06 Thread Christopher Sean Morrison
Our part "particle" primitive is a misnomer (that we need to rename). It should be called a "pill" primitive as it's a lozenge shape with a cylinder capped by two hemispheres. The volume would be: vol_small_cap/2 + vol_big_cap/2 + vol_cyl For the case where the ends are equal size, that'd b

Re: [brlcad-devel] API help required ;-)

2012-07-06 Thread Daniel Roßberg
2012/7/6 Oliver Gloth : > Daniel, > > I would like to use a C++ interface to BRL-CAD :-) > > Where can I find the code; is it part of the standard installation? The source code is in the BRL-CAD rt^3 repository at SourceForge: https://brlcad.svn.sourceforge.net/svnroot/brlcad/rt^3/trunk It's in th

Re: [brlcad-devel] voxelize() function

2012-07-06 Thread Daniel Roßberg
2012/7/5 Anurag Murty : > Daniel, > > I have made the changes you suggested in this mail and also made changes to > libanalyze, analyze.h as discussed once previously. > Right now I am trying to understand how to implement a command for this in > libged. Maybe you can use ged_facetize() as templat

Re: [brlcad-devel] API help required ;-)

2012-07-06 Thread Oliver Gloth
Daniel, I would like to use a C++ interface to BRL-CAD :-) Where can I find the code; is it part of the standard installation? Our code is GPL licenced; would it be a problem to use the source directly (with an appropriate copyright notice), or do I need to wrap them in a separate library? Th