AGI STK Graphics 11 Send comments on this topic.
IAgStkGraphicsSurfacePolygonTriangulatorInitializer Interface





Description

Triangulates a polygon, with an optional hole, on a central body, into a triangle mesh and a surrounding boundary. The mesh is commonly visualized with the Triangle Mesh Primitive or Surface Mesh Primitive. The boundary is commonly visualized with the Polyline Primitive.

Object Model

Public Methods

Public Method Compute Computes the triangulation on the specified centralBody for a polygon whose boundary is defined by the specified positions. This is equivalent to calling Compute with an altitude of 0, a granularity of 1 degree, and a positionsWindingOrder of Compute.
Public Method ComputeCartographic For convenience. Computes the triangulation on the specified centralBody for a polygon whose boundary is defined by the specified Cartographic positions. Longitude and latitude are in radians, and altitude is in meters. This is equivalent to converting each position in positions to Cartesian and calling Compute
Public Method ComputeCartographicWithAltitudeAndGranularity For convenience. Computes the triangulation on the specified centralBody for a polygon whose boundary is defined by the specified Cartographic positions. Longitude and latitude are in radians, and altitude is in meters. This is equivalent to converting each position in positions to Cartesian and calling Compute
Public Method ComputeWithAltitudeAndGranularity Computes the triangulation on the specified centralBody for a polygon whose boundary is defined by the specified positions.
Public Method ComputeWithHole Computes the triangulation on the specified centralBody for a polygon whose boundary is defined by the specified positions with a hole specified by holePositions. This is equivalent to calling Compute with an altitude of 0 and a granularity of 1 degree.
Public Method ComputeWithHoleAltitudeAndGranularity Computes the triangulation on the specified centralBody for a polygon whose boundary is defined by the specified positions with a hole specified by holePositions.

Example

Draw a new Surface Extent Triangulator
[MATLAB] Copy Code
% IAgScenario scenario: Scenario object 
manager = scenario.SceneManager; 
texture = manager.Textures.LoadFromStringUri('C:\Program Files\AGI\STK 11\CodeSamples\CustomApplications\Data\HowTo\Textures\agi_logo_transparent.png'); 
mesh = manager.Initializers.SurfaceMeshPrimitive.Initialize(); 
mesh.Texture = texture; 
mesh.Translucency = 0; 
cartographicExtent = {-55;10;-24;30}; 
 
triangles = manager.Initializers.SurfaceExtentTriangulator.ComputeSimple('Earth', cartographicExtent); 
mesh.Set(triangles); 
mesh.Translucency = .25; 
c0 = {10;-55}; 
c1 = {30;-55}; 
c2 = {30;-24}; 
c3 = {10;-24}; 
 
mesh.TextureMatrix = manager.Initializers.TextureMatrix.InitializeWithRectangles(c0,c1,c2,c3); 
mesh.TransparentTextureBorder = true; 
manager.Primitives.Add(mesh); 
manager.Render; 
 
 

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1