Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
sphere
- Page 1
Re: ‘Advanced AI should be treated similar to Weapons of Mass Destruction’
Community Center
1 Month Ago
by rproffitt
UPDATE: Feb 4, 2025 — Google on Tuesday updated its ethical guidelines around artificial intelligence, removing commitments not to apply the technology to weapons or surveillance.
Sphere Surface area calculator
Programming
Software Development
14 Years Ago
by JudeV
… local variable. [CODE] Console.WriteLine("{0, 40}", "
Sphere
Surface Area Evaluator"); Console.Write("\nEvaluates Surface areas…"); COnsole.Read(); [/CODE] The program should look like this.
Sphere
Surface Area Evaluator Evaluates Surface areas of spheres of various…
Re: Sphere Surface area calculator
Programming
Software Development
14 Years Ago
by JudeV
… dA; bool bError; Console.WriteLine("{0, 40}", "
Sphere
Surface Area Evaluator"); Console.Write("\nEvaluates Surface areas…
Re: Sphere Surface area calculator
Programming
Software Development
14 Years Ago
by JudeV
… dA; bool bError; Console.WriteLine("{0, 40}", "
Sphere
Surface Area Evaluator"); Console.Write("\nEvaluates Surface areas…
Re: Sphere Surface area calculator
Programming
Software Development
14 Years Ago
by Momerath
… :) Oh, and your equation for the surface area of a
sphere
is wrong.
Sphere model file and texture
Programming
Game Development
12 Years Ago
by IMagen
Those are my first steps in the directx world. I would like to create a
sphere
and put a picture on it where should I start from?
Re: Help with sphere member functions
Programming
Software Development
16 Years Ago
by henpecked1
… the calculation functions) and says onlyh one
sphere
object need exist at a time. DO…'s not confusing enough [code]
sphere
::
sphere
() //default constructor { int Radius=0; } void
sphere
::setradius(int newRadius) { radius =…quot;0" issue and set a new radius int
sphere
::getradius() { while (radius <0) { cout …
How to draw sphere 3D by using mouse
Programming
Software Development
13 Years Ago
by mudi12
…universe.getViewingPlatform().setNominalViewingTransform(); group.addChild(light1);
Sphere
sphere
= new
Sphere
(0.05f); TransformGroup tg = new …(vector); tg.setTransform(transform); tg.addChild(
sphere
); group.removeAllChildren(); group.addChild(tg); …
Re: How to draw sphere 3D by using mouse
Programming
Software Development
13 Years Ago
by mudi12
…setNominalViewingTransform(); group.addChild(light1); while(ch) {
Sphere
sphere
= new
Sphere
(0.05f); TransformGroup tg = new TransformGroup();….setTranslation(vector); tg.setTransform(transform); tg.addChild(
sphere
); group.addChild(tg); universe.addBranchGraph(group); }…
Help with sphere member functions
Programming
Software Development
16 Years Ago
by henpecked1
…given an assignment to write code for a
sphere
class. Now the point of this lesson …me in if I'm wrong. [code]
sphere
(); //default constructor
sphere
(int inradius); //parameterized constructor or function for …inputting radius void setradius(int newradius); //new
sphere
object int getradius(); // getter for the radius …
Re: How to draw sphere 3D by using mouse
Programming
Software Development
13 Years Ago
by mudi12
…(BranchGroup.ALLOW_CHILDREN_WRITE); BranchGroup temp = new BranchGroup();
Sphere
sphere
= new
Sphere
(0.02f); TransformGroup tg = new TransformGroup(); Transform3D…setTranslation(vector); tg.setTransform(transform); tg.addChild(
sphere
); temp.addChild(tg); group.detach(); group.…
Calculating surface area and volume of sphere
Programming
Software Development
13 Years Ago
by totalanonymity
…* r ^ 3 [*]Output the surface area and volume of the
sphere
. [/LIST] I've been trying to figure this out for…, volume); cout << "The surface area of the
sphere
is: " << surface << endl; cout <…;< "The volume of the
sphere
is: " << volume << endl; system ("…
Re: Help with sphere member functions
Programming
Software Development
16 Years Ago
by Ancient Dragon
Here is an example [code] // create instance and use default constructor
sphere
obj; // create another instance but specifiy the radius int radius = 20;
sphere
obj1(radius); // now change the radius radius = 21; obj.setradius(radius); [/code]
Re: Help with sphere member functions
Programming
Software Development
16 Years Ago
by bugmenot
[QUOTE=henpecked1;597636][code]
sphere
::
sphere
() //default constructor { int Radius=0; }[/code][/QUOTE] wow. what did you expect that code to do?
Re: How to draw sphere 3D by using mouse
Programming
Software Development
13 Years Ago
by JamesCherrill
[QUOTE]it draw one
sphere
but when i enter 2nd.. it gives me error[/QUOTE] It would help if you told us [B][I]exactly [/I][/B]what the error was.
Re: Help with sphere member functions
Programming
Software Development
16 Years Ago
by Ancient Dragon
… I suppose a loop might be the best way. [code]
sphere
sp; for(int i = 20; i < 31; i++) { sp…
Volume of a Sphere: Why does my program give me a diff. result than my calculator?
Programming
Software Development
14 Years Ago
by Marcial
… following code based on the following physics problem: "A
sphere
of metal has a radius of 6.7 cm and….27 g/cm^3. What's the mass of the
sphere
?". The program runs error-free, except that it gives…=density*volume; cout<<"The mass of the
sphere
is: "<<mass<<" grams.\n…
x,y,z for a sphere array problem
Programming
Software Development
13 Years Ago
by Zvjezdan23
…; "What is the x,y,z for the 1st
sphere
? "; getline(cin, first_sphere[3]); stream << …; "What is the x, y, z for the 2nd
sphere
? "; getline(cin, second_sphere[3]); stream2 << second_sphere…, float *sphere2); { cout << "The Radius for
Sphere
's 1 and 2 is... " << endl; cout…
Re: create a sphere using triangles
Programming
Software Development
13 Years Ago
by VernonDozier
… a second. How do you propose to create something curved(
sphere
) with something that only has straight edges(triangle)? It seems… are trying to create something "close to" a
sphere
? >> all of them only describe creating a…
sphere
using some library packages Which is to be expected. I …
Re: Texture mapping for sphere!
Programming
Game Development
17 Years Ago
by caowei
…. for In fact ,i used two methods to draw the
sphere
.First I generate vertices and texture coordinates manually,but i… the coordinate is wrong.then i used mesh to draw
sphere
but use the same formula to generate the texture coordinate… the texture coordinate is right,but when i rotate the
sphere
,more and more part of my texture coordinate is wrong…
Re: Texture mapping for sphere!
Programming
Game Development
17 Years Ago
by caowei
…question :In fact ,i used two methods to draw the
sphere
.First I generate vertices and texture coordinates manually,but i…the coordinate is wrong.then i used mesh to draw
sphere
but use the same formula to generate the texture coordinate…the texture coordinate is right,but when i rotate the
sphere
,more and more part of my texture coordinate is wrong…
Re: x,y,z for a sphere array problem
Programming
Software Development
13 Years Ago
by mrnutty
… *sphere1, float *sphere2); { cout << "The Radius for
Sphere
's 1 and 2 is... " << endl; cout…
create a sphere using triangles
Programming
Software Development
13 Years Ago
by cool_zephyr
could anyone please help me to create a
sphere
using triangles?? i've searched a lot but all of them only describe creating a
sphere
using some library packages
Re: create a sphere using triangles
Programming
Software Development
13 Years Ago
by cool_zephyr
[QUOTE=;][/QUOTE] we are studying graphics under C, so I'm thinking of creating a
sphere
as an assignment..could you help please to get me the algorithm and the math part??
Re: create a sphere using triangles
Programming
Software Development
13 Years Ago
by mrnutty
…, bc, ac, div-1, r); //<--Comment this line and
sphere
looks really cool! } } void drawsphere(int ndiv, float radius=1…
Re: create a sphere using triangles
Programming
Software Development
13 Years Ago
by VernonDozier
… you the math part. It's impossible to create a
sphere
using triangles mathematically. I think I know what you mean…
Re: create a sphere using triangles
Programming
Software Development
13 Years Ago
by cool_zephyr
[QUOTE=;][/QUOTE] @firstperson could you please explain the code too?? i'm not able to grasp what the code is doing @Vernon i have to create a
sphere
using only the primitives like lines, circles, triangles etc. so i can't use any library.. thank you guys for your time..i think it's too complicated for me to do it
Re: create a sphere using triangles
Programming
Software Development
13 Years Ago
by VernonDozier
… the code is doing @Vernon i have to create a
sphere
using only the primitives like lines, circles, triangles etc. so…
Logitech QuickCam Sphere (Orbit) Tilt Problem
Hardware and Software
Hardware
20 Years Ago
by ReDuX
… just invested in one of the shiny new Logitech Quickcam
Sphere
's (Orbit in USA). And as lovely as it looks…
Logitech sphere/orbit microphone issue
Hardware and Software
Hardware
19 Years Ago
by jimw00d
I have installed a Logitech
sphere
/orbit. I used the updated drivers from Logitech's website …
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC