67 else if (std::fabs((right.
GetSurfaceNormal()).dot(GetSurfaceNormal())) < 0.9999999999)
79 }
while (!coincident && ++j < GetNumberOfVertices());
80 }
while (coincident && ++i < GetNumberOfVertices());
89 G4int n = GetNumberOfVertices();
90 for (
G4int i = 0; i <
n; ++i)
92 SetVertex(i, GetVertex(i) + v);
101 os <<
"*********************************************************************"
103 os <<
"FACET TYPE = " << GetEntityType() <<
G4endl;
104 os <<
"ABSOLUTE VECTORS = " <<
G4endl;
105 G4int n = GetNumberOfVertices();
106 for (
G4int i = 0; i <
n; ++i)
107 os <<
"P[" << i <<
"] = " << GetVertex(i) <<
G4endl;
108 os <<
"*********************************************************************"
117 G4double displacement = d.dot(GetSurfaceNormal());
118 return displacement <= 0.0;
CLHEP::Hep3Vector G4ThreeVector
static const G4double kCarTolerance
static const G4float tolerance
G4double GetSurfaceTolerance() const
virtual G4int GetNumberOfVertices() const =0
virtual G4ThreeVector GetCircumcentre() const =0
G4bool operator==(const G4VFacet &right) const
virtual G4ThreeVector GetSurfaceNormal() const =0
static const G4double dirTolerance
G4bool IsInside(const G4ThreeVector &p) const
std::ostream & StreamInfo(std::ostream &os) const
virtual G4ThreeVector GetVertex(G4int i) const =0
void ApplyTranslation(const G4ThreeVector v)
static G4GeometryTolerance * GetInstance()