Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
Zoom on a 3D surface
Zoom on a 3D surface
Post Reply
Zoom on a 3D surface
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Dan Overton
Dan Overton
posted 11 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 4,
Visits: 14
When using one of the 3d surfaces (mesh, triangulated), is there a way to zoom in on a certain part of the surface?
Reply
Like
0
Nevron Support
Nevron Support
posted 11 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hello,
You can use the Data Zoom tool in order to zoom-in on a portion of a chart interactively (with the mouse). You can take a look at the following example in our demo application:
All Examples > Interactivity > Tools > Data Zoom Tool
By default the chart in the example is 2D, but there is a setting to switch it to a 3D point chart. In general this method applies for all Cartesian series, including surface series.
The same thing can be achieved programmatically. The code below demonstrates how to zoom-in on a portion of a mesh surface:
nChartControl1.Controller.Tools.Add(new NSelectorTool());
nChartControl1.Controller.Tools.Add(new NTrackballTool());
NChart chart = nChartControl1.Charts[0];
chart.Enable3D = true;
chart.Width = 50;
chart.Depth = 50;
chart.Height = 40;
NMeshSurfaceSeries surface = new NMeshSurfaceSeries();
surface.Data.SetGridSize(10, 10);
chart.Series.Add(surface);
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
double y = Math.Sin(i * 0.3);
double x = i;
double z = j;
surface.Data.SetValue(i, j, y, x, z);
}
}
NAxis axisX = chart.Axis(StandardAxis.PrimaryX);
axisX.ScaleConfigurator = new NLinearScaleConfigurator();
NNumericAxisPagingView pagingViewX = (NNumericAxisPagingView)axisX.PagingView;
pagingViewX.Enabled = true;
pagingViewX.Begin = 1;
pagingViewX.Length = 2;
NAxis axisZ = chart.Axis(StandardAxis.Depth);
axisZ.ScaleConfigurator = new NLinearScaleConfigurator();
axisZ.Visible = true;
NNumericAxisPagingView pagingViewZ = (NNumericAxisPagingView)axisZ.PagingView;
pagingViewZ.Enabled = true;
pagingViewZ.Begin = 1;
pagingViewZ.Length = 2;
Best Regards,
Nevron Support Team
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search