Page 1 of 1

view3d move the axis to be centered around 0, 0, 0?

Posted: Thu Mar 30, 2017 6:29 pm
by greggorob64
Hi, I have a point cloud, that i'm working on:

Image

Is it possible to move the axis so they meet in like.... the center point? I basically want all of the axis to go through the 0, 0, 0 point.

Possible?

Image

Re: view3d move the axis to be centered around 0, 0, 0?

Posted: Fri Mar 31, 2017 12:32 pm
by ArctionKestutis
Hi Greg,

Unfortunately it is not possible.
The axes can be positioned in 3D model box corners. Use Location property of an axis to adjust that.
* For X axis, the Location options are: BottomFront, BottomBack, TopFront and TopBack.
* For Y axis, the Location options are: FrontLeft, FrontRight, BackLeft and BackRight.
* For Z axis, the Location options are: BottomLeft, BottomRight, TopLeft and TopRight.

The closest thing you could get is to use transparent planes, as in our Demo app example "Surface mouse control"
TransparentPlanesIn3D.jpg
TransparentPlanesIn3D.jpg (47.78 KiB) Viewed 7853 times
Or use Annotation arrow-style with Target-/Location-CoordinateSystem set to AxisValues.

All the best.

Re: view3d move the axis to be centered around 0, 0, 0?

Posted: Fri Mar 31, 2017 7:32 pm
by greggorob64
We might go with the plane approach, I'm not quite sure. Will have to readress at a later time, thanks for the help.

Re: view3d move the axis to be centered around 0, 0, 0?

Posted: Tue Apr 04, 2017 6:56 am
by ArctionKestutis
Hi Greg,

There are one more option: you could use Annotation3D's TargetCrosshair. The code may look like this

Code: Select all

            PointDoubleXYZ fCenterCoord = new PointDoubleXYZ(null, 0f, 0f, 0f);
            Annotation3D targetCrosshairs = new Annotation3D(chart.View3D, Axis3DBinding.Primary, Axis3DBinding.Primary, Axis3DBinding.Primary);
            targetCrosshairs.Style = AnnotationStyle.Arrow;
            targetCrosshairs.LocationCoordinateSystem = CoordinateSystem.AxisValues;
            targetCrosshairs.TargetCoordinateSystem = AnnotationTargetCoordinates.AxisValues;
            targetCrosshairs.LocationAxisValues = fCenterCoord;
            targetCrosshairs.TargetAxisValues = fCenterCoord;
            targetCrosshairs.MouseInteraction = false;
            targetCrosshairs.ShowTargetCrosshair = TargetCrossHair.On;
            targetCrosshairs.TargetCrosshairLineStyle.Color = Color.BlueViolet;
            targetCrosshairs.ArrowLineStyle.Width = 5f;
            targetCrosshairs.ArrowLineStyle.Color = Color.Yellow;
            targetCrosshairs.TextStyle.Visible = false;
            chart.View3D.Annotations.Add(targetCrosshairs);
The outcome is following
ShowTargetCrosshair.jpg
ShowTargetCrosshair.jpg (214.61 KiB) Viewed 7838 times
All the best.

Re: view3d move the axis to be centered around 0, 0, 0?

Posted: Mon Apr 17, 2017 11:44 am
by greggorob64
Just got back from vacation, thanks for the update! This line drawing should work perfectly