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

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

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

Post by greggorob64 » Thu Mar 30, 2017 6:29 pm

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

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

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

Post by ArctionKestutis » Fri Mar 31, 2017 12:32 pm

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 7684 times
Or use Annotation arrow-style with Target-/Location-CoordinateSystem set to AxisValues.

All the best.

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

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

Post by greggorob64 » Fri Mar 31, 2017 7:32 pm

We might go with the plane approach, I'm not quite sure. Will have to readress at a later time, thanks for the help.

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

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

Post by ArctionKestutis » Tue Apr 04, 2017 6:56 am

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 7669 times
All the best.

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

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

Post by greggorob64 » Mon Apr 17, 2017 11:44 am

Just got back from vacation, thanks for the update! This line drawing should work perfectly

Post Reply