# `class WMPolygon extends WMObjBase`

Available on all platforms

A general polygon

## Instance Fields

### `var dashed:Int`

### `var myIndex:Int`

### `var numIndex:Int`

### `var size:Int`

### `function new(r:Float, c0:Int, c1:Int, a:Float, o:Float, q:Int, ag:Float, d:Float, sp:Float, gl:Float, sh:String):Void`

### `function absmax():Point3D`

### `function gen(c:Context3D, is_dc_active:Bool):Void`

### `function gen2(c:Context3D, is_dc_active:Bool):Void`

### `function getDataSize():Int`

### `function get_dashed():Int`

### `function get_myIndex():Int`

### `function get_numIndex():Int`

### `function get_size():Int`

### `function loadFromXml(x:Xml, def:WMDefaults):Void`

### `function num():Int`

### `function pregen():Void`

### `function scaleCoord(scale:Float):Void`

### `function set_dashed(i:Int):Int`

### `function set_myIndex(i:Int):Int`

### `function set_numIndex(i:Int):Int`

### `function set_size(i:Int):Int`

### `function sumPos():Point3D`

### `function translate(p:Point3D):Void`