PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.c > need some
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
need some

Réponse
 
LinkBack Outils de la discussion
Vieux 05/02/2008, 07h47   #1
johnnash
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut need some

i am writing a scientific software in C language which will be use for
calculation of radar cross section of large aerospace/marine objects.
the technique i will be using is ray tracing. The aerospace/marine
objects will be modelled by using NURBS surfaces. So a cad file
containing these geometrical entities will be the input to my
software. My questions are

1. how can i read such cad files in C language ?

2. How do I process the NURBS surfaces ? I mean how should I create a
struct which will deal with each surface ?

Please me or guide me to a ng where some graphics/c experts may
be able to .
  Réponse avec citation
Vieux 05/02/2008, 08h22   #2
Billy Bong
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: need some

On Mon, 04 Feb 2008 23:47:01 -0800, johnnash wrote:

> i am writing a scientific software in C language which will be use for
> calculation of radar cross section of large aerospace/marine objects.
> the technique i will be using is ray tracing. The aerospace/marine
> objects will be modelled by using NURBS surfaces. So a cad file
> containing these geometrical entities will be the input to my software.
> My questions are
>
> 1. how can i read such cad files in C language ?
>
> 2. How do I process the NURBS surfaces ? I mean how should I create a
> struct which will deal with each surface ?
>
> Please me or guide me to a ng where some graphics/c experts may be
> able to .


Don't even try this in C. Use C++. Here is the definitive site.

http://www.opennurbs.org/

--
Billy
  Réponse avec citation
Vieux 05/02/2008, 09h08   #3
Richard Heathfield
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: need some

johnnash said:

> i am writing a scientific software in C language which will be use for
> calculation of radar cross section of large aerospace/marine objects.
> the technique i will be using is ray tracing. The aerospace/marine
> objects will be modelled by using NURBS surfaces. So a cad file
> containing these geometrical entities will be the input to my
> software. My questions are
>
> 1. how can i read such cad files in C language ?


http://www.wotsit.org/list.asp?fc=19 provides file format information for a
variety of CAD formats.

>
> 2. How do I process the NURBS surfaces ? I mean how should I create a
> struct which will deal with each surface ?


http://www.rw-designer.com/NURBS gives some basic information on NURBS
curves. (Don't take that site as gospel, though - it may be that the
graphics guys - see below - have better recommendations.)

Since the number of splines in each curve is variable, I would recommend a
dynamic structure. If you can pin down what information you need to store
and what the variable parts are, we could certainly you to express
that in C.

> Please me or guide me to a ng where some graphics/c experts may
> be able to .


For the C bits, right here is fine, but first you need to establish exactly
what you're trying to represent and manipulate, and the best place for
that is probably the comp.graphics.algorithms newsgroup.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
  Réponse avec citation
Vieux 05/02/2008, 13h29   #4
johnnash
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: need some

On Feb 5, 1:22 pm, Billy Bong <billyb655...@aol.com> wrote:
> On Mon, 04 Feb 2008 23:47:01 -0800, johnnash wrote:
> > i am writing a scientific software in C language which will be use for
> > calculation of radar cross section of large aerospace/marine objects.
> > the technique i will be using is ray tracing. The aerospace/marine
> > objects will be modelled by using NURBS surfaces. So a cad file
> > containing these geometrical entities will be the input to my software.
> > My questions are

>
> > 1. how can i read such cad files in C language ?

>
> > 2. How do I process the NURBS surfaces ? I mean how should I create a
> > struct which will deal with each surface ?

>
> > Please me or guide me to a ng where some graphics/c experts may be
> > able to .

>
> Don't even try this in C. Use C++. Here is the definitive site.
>
> http://www.opennurbs.org/
>
> --
> Billy


Actually, I cannot use C++ as I have been told not to use it but
anyway, thanks for the link.
  Réponse avec citation
Vieux 05/02/2008, 13h47   #5
johnnash
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: need some

On Feb 5, 2:08 pm, Richard Heathfield <r...@see.sig.invalid> wrote:
> johnnash said:
>
> > i am writing a scientific software in C language which will be use for
> > calculation of radar cross section of large aerospace/marine objects.
> > the technique i will be using is ray tracing. The aerospace/marine
> > objects will be modelled by using NURBS surfaces. So a cad file
> > containing these geometrical entities will be the input to my
> > software. My questions are

>
> > 1. how can i read such cad files in C language ?

>
> http://www.wotsit.org/list.asp?fc=19provides file format information for a
> variety of CAD formats.
>
>
>
> > 2. How do I process the NURBS surfaces ? I mean how should I create a
> > struct which will deal with each surface ?

>
> http://www.rw-designer.com/NURBSgives some basic information on NURBS
> curves. (Don't take that site as gospel, though - it may be that the
> graphics guys - see below - have better recommendations.)
>
> Since the number of splines in each curve is variable, I would recommend a
> dynamic structure. If you can pin down what information you need to store
> and what the variable parts are, we could certainly you to express
> that in C.
>
> > Please me or guide me to a ng where some graphics/c experts may
> > be able to .

>
> For the C bits, right here is fine, but first you need to establish exactly
> what you're trying to represent and manipulate, and the best place for
> that is probably the comp.graphics.algorithms newsgroup.
>
> --
> Richard Heathfield <http://www.cpax.org.uk>
> Email: -http://www. +rjh@
> Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
> "Usenet is a strange place" - dmr 29 July 1999


Hi Richard,

Thanks for the tutorial it was certainly ful. as far as the C bits
are concerned the only problem I seem to have is as to how I must go
about designing the program. I'm only a intermediate level programmer
and have only 5-6 months of time to finish this huge project(working
full time). So I was wondering as to how I must divide this program
into smaller modules i.e. all the .h files and .c files. Is there any
particular methodology that might in deciding how I must break
down the problem into smaller pieces ?
Do you know about some ray tracing codes ? Do you think it will
to go through some of these codes in order to get some idea as to how
I must begin coding ?
  Réponse avec citation
Vieux 05/02/2008, 16h14   #6
Richard Heathfield
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: need some

johnnash said:

<snip>

> Thanks for the tutorial it was certainly ful. as far as the C bits
> are concerned the only problem I seem to have is as to how I must go
> about designing the program. I'm only a intermediate level programmer
> and have only 5-6 months of time to finish this huge project(working
> full time). So I was wondering as to how I must divide this program
> into smaller modules i.e. all the .h files and .c files. Is there any
> particular methodology that might in deciding how I must break
> down the problem into smaller pieces ?


It's impossible to be dogmatic about this, but I would start off by
defining the basic concepts in the system, e.g. functions for manipulating
vectors and NURBS curves would sit very nicely in one module, your
"virtual world" stuff (representations, rotations, translations, scaling)
would make another good one, your rendering buffer routines could make
another, and so on. Let each module stand alone as far as possible. If you
have to combine them, do so by calling those routines from functions
defined in *another* module which, again, is as standalone as possible.

Put the public interface of each module into its own header file.

> Do you know about some ray tracing codes ? Do you think it will
> to go through some of these codes in order to get some idea as to how
> I must begin coding ?


Your best source of advice on high quality ray tracing code would be
comp.graphics.algorithms.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
  Réponse avec citation
Vieux 05/02/2008, 16h29   #7
Malcolm McLean
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: need some


"johnnash" <johnnash86@gmail.com> wrote in message
news:b604ec4c-3bd0-4f62-a031-06ff4c128e1c@s19g2000prg.googlegroups.com...
>i am writing a scientific software in C language which will be use for
> calculation of radar cross section of large aerospace/marine objects.
> the technique i will be using is ray tracing. The aerospace/marine
> objects will be modelled by using NURBS surfaces. So a cad file
> containing these geometrical entities will be the input to my
> software. My questions are
>
> 1. how can i read such cad files in C language ?
>
> 2. How do I process the NURBS surfaces ? I mean how should I create a
> struct which will deal with each surface ?
>
> Please me or guide me to a ng where some graphics/c experts may
> be able to .
>

Is this over your head, or is it ful?
http://www.cs.utah.edu/vissim/papers...rbs/node3.html

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

  Réponse avec citation
Vieux 05/02/2008, 21h37   #8
Bartc
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: need some

johnnash wrote:
> i am writing a scientific software in C language which will be use for
> calculation of radar cross section of large aerospace/marine objects.
> the technique i will be using is ray tracing. The aerospace/marine
> objects will be modelled by using NURBS surfaces. So a cad file
> containing these geometrical entities will be the input to my
> software. My questions are
>
> 1. how can i read such cad files in C language ?


Is this any specific cad file format? If so which one?

What do you mean by ray tracing? That is normally a technique for rendering
a view of the objects.

--
Bart



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h36.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,18972 seconds with 16 queries