GO2cam Javascript API
GO2SFace Class Reference

Class representing a single face of a solid geometry. More...

Inheritance diagram for GO2SFace:
GO2SReference

Public Member Functions

GO2SXYZ GetCenter ()
 
Number GetColor ()
 
Array< GO2SEdgeGetEdges ()
 
GO2SXYZ GetNormal ()
 
Number GetSurface ()
 
Boolean IsConical ()
 
Boolean IsCylindrical ()
 
Boolean IsPlanar ()
 
Boolean IsSpherical ()
 
Boolean IsTorus ()
 
GO2SEnum::GO2SError SetColor (Number color)
 
- Public Member Functions inherited from GO2SReference
GO2SGeometry GetGeometry ()
 
Boolean IsOnEdge ()
 
Boolean IsOnFace ()
 
Boolean IsOnGeometry ()
 

Detailed Description

Class representing a single face of a solid geometry.

Version
6.11.204

Member Function Documentation

◆ GetCenter()

GO2SXYZ GO2SFace::GetCenter ( )
Returns
the center of the face

◆ GetColor()

Number GO2SFace::GetColor ( )
Returns
the color of the face
Version
2026

◆ GetEdges()

Array< GO2SEdge > GO2SFace::GetEdges ( )
Returns
all the edges of the face

◆ GetNormal()

GO2SXYZ GO2SFace::GetNormal ( )
Returns
the normal direction at the center of the face

◆ GetSurface()

Number GO2SFace::GetSurface ( )
Returns
the surface of the edge

◆ IsConical()

Boolean GO2SFace::IsConical ( )
Returns
if the surface is conical

◆ IsCylindrical()

Boolean GO2SFace::IsCylindrical ( )
Returns
if the surface is cylindrical

◆ IsPlanar()

Boolean GO2SFace::IsPlanar ( )
Returns
if the surface is planar

◆ IsSpherical()

Boolean GO2SFace::IsSpherical ( )
Returns
if the surface is spherical

◆ IsTorus()

Boolean GO2SFace::IsTorus ( )
Returns
if the surface is a torus

◆ SetColor()

GO2SEnum::GO2SError GO2SFace::SetColor ( Number color)

Set the color of the face

Version
2026
Parameters
[in]colorthe color, for example 0xFF0000 for blue, 0x00FF00 for green, 0x0000FF for red