Dies ist eine statische Kopie unseres alten Forums. Es sind keine Interaktionen möglich.
This is a static copy of our old forum. Interactions are not possible.

Neo

Erfahrener Schreiberling

  • "Neo" is male
  • "Neo" started this thread

Posts: 322

Date of registration: Jul 24th 2005

Location: Hannover

Occupation: Informatik

1

Sunday, June 17th 2007, 3:52pm

Berechnung der Dreiecksschwerpunkte im R³

Hallo,

ich möchte eine Formel zur Berechnung der Schwerpunkte von Dreiecken im R³ aufstellen.
Ich habe 3 Vektoren im R³ gegeben. Diese sind a, b und c. Diese Vektoren bilden ein Dreieck, d.h. jeweils zwei von ihnen sind miteinander verbunden.

Wie geht nun die Formel, um den Schwerpunkt zu berechnen?

Arne

ThI

  • "Arne" is male

Posts: 1,798

Date of registration: Oct 7th 2002

Location: Hannover :)

Occupation: Lecturer ThI

2

Sunday, June 17th 2007, 4:02pm

"NP - The class of dashed hopes and idle dreams." Complexity Zoo

Neo

Erfahrener Schreiberling

  • "Neo" is male
  • "Neo" started this thread

Posts: 322

Date of registration: Jul 24th 2005

Location: Hannover

Occupation: Informatik

3

Sunday, June 17th 2007, 4:25pm

Vector3d a;
Vector3d b;
Vector3d c;
Vector3d abhalbe = a + 0.5*(b-a);
Vector3d schwerpunktDesDreiecks = abhalbe + 1/3 *(c - abhalbe);
:]

This post has been edited 6 times, last edit by "Neo" (Jun 17th 2007, 5:06pm)


DrChaotica

Senior Schreiberling

  • "DrChaotica" is male

Posts: 714

Date of registration: Jan 22nd 2005

Location: SHG

Occupation: SW-Entwickler

4

Sunday, June 17th 2007, 8:15pm

Quoted

Original von Neo
Vector3d a;
Vector3d b;
Vector3d c;
Vector3d abhalbe = a + 0.5*(b-a);
Vector3d schwerpunktDesDreiecks = abhalbe + 1/3 *(c - abhalbe);
:]

Nicht sehr geradeaus...? 4 Additionen, 3 Multiplikationen vs. 2Add./1 Mul. bei S := (a+b+c)/3

Obwohl das ja eigentlich auch wieder eine Division ist, schneller gehts vermutlich noch mit S := (a+b+c)*0.333.....3, die Genauigkeit von 1/3 kann man sich dann ja beliebig aussuchen.
Wofür ist denn das, GDV-Vertiefung?

This post has been edited 2 times, last edit by "DrChaotica" (Jun 17th 2007, 8:36pm)


Markus

the one and only Unterstrich!

Posts: 2,571

Date of registration: Oct 9th 2003

5

Sunday, June 17th 2007, 8:28pm

Dazu kommt noch ein eventuelles 1/3 = 0 (:
Charmant sein? Hab ich längst aufgegeben. Glaubt mir doch eh keiner...

This post has been edited 1 times, last edit by "Markus" (Jun 17th 2007, 8:28pm)