Profile Picture

How to control Mesh lines style on NTriangulatedSurfaceSeries

Posted By Vishal Mahavadi 11 Years Ago

How to control Mesh lines style on NTriangulatedSurfaceSeries

Author
Message
Vishal Mahavadi
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 4, Visits: 1

Hello,

In our application, we are using NTriangulatedSurfaceSeries to form a surface. We need to have small lines on top of the NTriangulatedSurfaceSeries surface.

Please find the attached image.

When the SurfaceMode property of the used NTriangulatedSurfaceSeries is set to Mesh, we could see some lines on the surface. But they look very big. There are different options like solid lines, dashed & dotted lines options for the mesh lines. We could not find any option on controlling the distance between the lines.

We tried other options like HatchStyle.SmallGrid etc to control the distance between the lines of the mesh. But it doesn't fit our requirement.

Is there any other way to control the Mesh lines on the surface. Request you to provide an example.

Thank you in advance.

 

Best regards

Vishal


 

 



Attachments
SurfaceLines.jpg (131 views, 231.00 KB)
Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 1 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hello Vishal,

The surface Mesh lines connect each surface data point with its direct neighbors. In other words, the density of the mesh lines depends on the density of the data points. For now the surface series doesn't provide other means to control the density of the mesh lines.



Best Regards,
Nevron Support Team



Vishal Mahavadi
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 4, Visits: 1

Hello,

Is there any way to control the width and distance between the lines on HatchFillstyle's , TextureMappingStyle .

I am using the following code to achive desired lines on the surface.

====================================================================================================

NTriangulatedSurfaceSeries layer = new NTriangulatedSurfaceSeries();

..

..

..

layer.FrameMode = SurfaceFrameMode.Contour; (// Avoided Mesh/MeshContour, because of uncontrollable lines);

NHatchFillStyle pileFillStyle = new NHatchFillStyle(HatchStyle.LargeGrid, Color.Black, Color.Red);

NTextureMappingStyle pileFillTextureMapping = new NTextureMappingStyle();

pileFillTextureMapping.MapMode = MapMode.RelativeToObject;

pileFillTextureMapping.HorizontalScale = 0.05f;

pileFillTextureMapping.VerticalScale = 0.05f;

pileFillTextureMapping.MapLayout = MapLayout.Tiled;

pileFillStyle.TextureMappingStyle = pileFillTextureMapping;

layer.FillStyle = pileFillStyle;

======================================================================================

This behaviour is some what Okay with us. I could see some difference when I applied the HorizantalScale & VerticalScale. But not able to understand which one is this controlling( Distance / Width /Both).

I am not able to control the distance between the lines and the width of the lines as desired.

Is there any way to control the distance between the the  grid lines and the width of the grid lines.?

If this can be done, it will really improve our visualization much better.

 

Please let me know the possibilties. Thank you.

 

Best regards

Vishal

 

 



Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 1 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hello Vishal,

You can think of the hatches as of predefined bitmaps, so in general it is not possible to control the distance between the lines, etc. However, it is possible to use your own bitmaps in tiled mode in order to represent custom repeating patterns. The grid that you have to display is a kind of repeating pattern, so you can try this approach. When you use your own bitmaps you can have more control over various distances - in this case the bitmap's size and the scale factors of the texture mapping are of importance.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic