Message 1 of 6
Problem with UCS vectors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I can't figure out how the vectors and matrix works while changing UCS.
Let's say I have two points (could be start and end point on a line), now I want to create a UCS that have the X-axis on this line between the two points. I tried the following code but I can't create the correct vectors for the x,y and z axis.
Dim mat As Matrix3d = Matrix3d.AlignCoordinateSystem(Point3d.Origin, _
Vector3d.XAxis, _
Vector3d.YAxis, _
Vector3d.ZAxis, _
originPoint, _
xAxisVec, _
yAxisVec, _
zAxisVec)
ed.CurrentUserCoordinateSystem = mat
Please, help!
Let's say I have two points (could be start and end point on a line), now I want to create a UCS that have the X-axis on this line between the two points. I tried the following code but I can't create the correct vectors for the x,y and z axis.
Dim mat As Matrix3d = Matrix3d.AlignCoordinateSystem(Point3d.Origin, _
Vector3d.XAxis, _
Vector3d.YAxis, _
Vector3d.ZAxis, _
originPoint, _
xAxisVec, _
yAxisVec, _
zAxisVec)
ed.CurrentUserCoordinateSystem = mat
Please, help!