Message 1 of 4
3dFace
Not applicable
06-21-2008
09:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How does it work? I put this in my code:
Dim Obj As Acad3DFace
Dim point1(0 To 2) As Double
Dim point2(0 To 2) As Double
Dim point3(0 To 2) As Double
Dim point4(0 To 2) As Double
point1(0) = 0: point1(1) = 0: point1(2) = 0
point2(0) = 5: point1(1) = 0: point1(2) = 0
point3(0) = 5: point1(1) = 5: point1(2) = 0
point4(0) = 0: point1(1) = 5: point1(2) = 0
Set Obj = ThisDrawing.ModelSpace.Add3DFace(point1, point2, point3, point4)
But no matter the values I put in the point variables, I can never form a square 3dface, only (seemingly) random triangles!
Dim Obj As Acad3DFace
Dim point1(0 To 2) As Double
Dim point2(0 To 2) As Double
Dim point3(0 To 2) As Double
Dim point4(0 To 2) As Double
point1(0) = 0: point1(1) = 0: point1(2) = 0
point2(0) = 5: point1(1) = 0: point1(2) = 0
point3(0) = 5: point1(1) = 5: point1(2) = 0
point4(0) = 0: point1(1) = 5: point1(2) = 0
Set Obj = ThisDrawing.ModelSpace.Add3DFace(point1, point2, point3, point4)
But no matter the values I put in the point variables, I can never form a square 3dface, only (seemingly) random triangles!