Surface
A 3D surface (a mesh)
Exemple: how to create a simple surface with 2 triangles: VB
T1 is visible (face oriented to face the user), T2 is reversed, because drawn in the opposite direction (CW)

Public Fields
| Faces |
CamBam.Geom.TriangleFace[] | VB |
| Points |
CamBam.Geom.Point3FArray A list of 3D points. |
VB |
Properties
| CADFile readonly |
CADFile |
|
| ID |
System.Int32 |
|
| Layer readonly |
Layer |
|
| NumFaces readonly |
System.Int32 |
|
| NumVertices readonly |
System.Int32 |
|
| Parent |
System.Object |
|
| PrimitiveType readonly |
System.String |
|
| Tag |
System.String |
|
| Transform |
CamBam.Geom.Matrix4x4F |
Methods
| ApplyTransformation |
Boolean ApplyTransformation (Matrix4x4F xm) Multiply the points in the object by a transformation matrix. |
|
| Clone |
Entity Clone () | |
| CloneFrom |
Void CloneFrom (Entity src) | |
| GetEdgeList2F |
Dictionary`2 GetEdgeList2F (Boolean returnfaces) | |
| GetEdgeList3F |
Dictionary`2 GetEdgeList3F (Boolean returnfaces) | |
| GetExtents |
Void GetExtents (PointF& min, PointF& max) Find the extrema points of this primitive. Parameters: min: A point that will receive the minimum coordinates. max: A point that will receive the maximum coordinates. |
|
| GetExtrema |
Void GetExtrema (Point3F& min, Point3F& max) Find the extrema points of this primitive. Parameters: min: A point that will receive the minimum coordinates. max: A point that will receive the maximum coordinates. |
|
| GetFace |
Triangle3F GetFace (Int32 face) | |
| GetScreenExtents |
Void GetScreenExtents (PointF& min, PointF& max, Matrix4x4F xm) | |
| GetZAtPoint2 |
Double GetZAtPoint2 (Int32 f, Triangle3F tri, Point2F p) | |
| GetZAtPoint |
Double GetZAtPoint (Int32 f, Double TestX, Double TestY, Double TestZMax, Double TestZMin) | |
| GetZAtPoint |
Double GetZAtPoint (Double TestX, Double TestY, Double TestZMax, Double TestZMin) | |
| LoadFromRAW |
Void LoadFromRAW (String filename) | |
| Normal |
Vector3F Normal (Int32 f) | |
| Paint |
Void Paint (Display3D d3d) | |
| PlaneSlice |
Polyline[] PlaneSlice (Char Axis, Double offset) | |
| PointIntersect |
Boolean PointIntersect (Point2F p, Matrix4x4F xm, Double tolerance) | |
| PointIntersect |
Boolean PointIntersect (Point2F p, Matrix4x4F m, Double tolerance, Point3F& nearest) | |
| Update |
Void Update () |