Difference between revisions of "API Panel.PCloud"
From Flowcode Help
Jump to navigationJump to search (XML import of Point Cloud API) |
(XML import) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | <sidebar>API Contents</sidebar> | |
| − | |||
| − | <sidebar>API | ||
Point cloud manipulation | Point cloud manipulation | ||
| Line 16: | Line 14: | ||
|width="35%"|[[API Panel.PCloud.SetPos|SetPos]] | |width="35%"|[[API Panel.PCloud.SetPos|SetPos]] | ||
|Sets the position for the point cloud to be located at | |Sets the position for the point cloud to be located at | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.PCloud.GetPos|GetPos]] | ||
| + | |Gets the position the point cloud is located at | ||
|- | |- | ||
|width="35%"|[[API Panel.PCloud.SetPoints|SetPoints]] | |width="35%"|[[API Panel.PCloud.SetPoints|SetPoints]] | ||
| Line 28: | Line 29: | ||
|width="35%"|[[API Panel.PCloud.SetGridEx|SetGridEx]] | |width="35%"|[[API Panel.PCloud.SetGridEx|SetGridEx]] | ||
|Sets the X,Y,Z point lists in a height-map grid | |Sets the X,Y,Z point lists in a height-map grid | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.PCloud.SetGridFlat|SetGridFlat]] | ||
| + | |Sets the X,Y,Z point lists in a flat height-map grid | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.PCloud.SetGridPoint|SetGridPoint]] | ||
| + | |Given an XY on the grid, sets the vertex value at that point | ||
|- | |- | ||
|width="35%"|[[API Panel.PCloud.UnitScale|UnitScale]] | |width="35%"|[[API Panel.PCloud.UnitScale|UnitScale]] | ||
| Line 37: | Line 44: | ||
|width="35%"|[[API Panel.PCloud.SetColors|SetColors]] | |width="35%"|[[API Panel.PCloud.SetColors|SetColors]] | ||
|Sets the RGB colour of the individual points in the cloud | |Sets the RGB colour of the individual points in the cloud | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.PCloud.SetGridColor|SetGridColor]] | ||
| + | |Given an XY on the grid, sets the vertex colour at that point | ||
|- | |- | ||
|width="35%"|[[API Panel.PCloud.SetMode|SetMode]] | |width="35%"|[[API Panel.PCloud.SetMode|SetMode]] | ||
| − | |Sets the | + | |Sets the rendering mode of the point cloud |
| + | |- | ||
| + | |width="35%"|[[API Panel.PCloud.SetPointLight|SetPointLight]] | ||
| + | |Enables or disables simple lighting for point mode, providing a normal passing through the point and (0,0,0) | ||
|- | |- | ||
|width="35%"|[[API Panel.PCloud.Update|Update]] | |width="35%"|[[API Panel.PCloud.Update|Update]] | ||
Latest revision as of 15:57, 16 January 2014
<sidebar>API Contents</sidebar> Point cloud manipulation
This class is contained within Panel.
Contents
Functions provided for this class
| Create | Creates a new point cloud tied to a position handle |
| SetPos | Sets the position for the point cloud to be located at |
| GetPos | Gets the position the point cloud is located at |
| SetPoints | Sets the X,Y,Z point lists |
| SetPointsEx | Sets the X,Y,Z point lists |
| SetGrid | Sets the X,Y,Z point lists in a height-map grid |
| SetGridEx | Sets the X,Y,Z point lists in a height-map grid |
| SetGridFlat | Sets the X,Y,Z point lists in a flat height-map grid |
| SetGridPoint | Given an XY on the grid, sets the vertex value at that point |
| UnitScale | Creates a unit scaled axis (X, Y or Z) with a center of zero and a range of two |
| SetColor | Sets the RGB colour of the entire cloud |
| SetColors | Sets the RGB colour of the individual points in the cloud |
| SetGridColor | Given an XY on the grid, sets the vertex colour at that point |
| SetMode | Sets the rendering mode of the point cloud |
| SetPointLight | Enables or disables simple lighting for point mode, providing a normal passing through the point and (0,0,0) |
| Update | Manually refresh the screen the point cloud exists on |
Constants provided for this class
| Type | Name | Value | Description |
|---|---|---|---|
| LONG | Mode_Point | 0 | Displays cloud as points |
| LONG | Mode_Line | 1 | Displays cloud as joined lines |
| LONG | Mode_Solid | 2 | Displays cloud as a solid surface |
Examples
No additional examples
See also
No additional information