mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-20 23:15:55 +08:00
New class AIS_PointCloud for displaying point sets. Update Graphic3d_ArrayOfPoints, OpenGl_PrimitiveArray and OpenGl_VertexBuffer classes to be able to use normals for points. Add Draw Harness command vpointcloud. Add test case v3d/point_cloud/sphere. Move protected method AIS_Shape::DisplayBox() to public function StdPrs_WFDeflectionRestrictedFace::AddBox(). Small correction of grids.list for v3d tests
32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
-- Created on: 2001-01-04
|
|
-- Copyright (c) 2001-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and/or modify it under
|
|
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
class ArrayOfPoints from Graphic3d inherits ArrayOfPrimitives from Graphic3d
|
|
---Purpose: Contains points array definition
|
|
|
|
is
|
|
|
|
-- constructor
|
|
Create (maxVertexs: Integer from Standard;
|
|
hasVColors: Boolean from Standard = Standard_False;
|
|
hasVNormals: Boolean from Standard = Standard_False)
|
|
returns ArrayOfPoints from Graphic3d;
|
|
---Purpose: Creates an array of points,
|
|
-- a single pixel point is drawn at each vertex.
|
|
-- The array must be filled using the AddVertex(Point) method.
|
|
-- When <hasVColors> is TRUE , you must use only AddVertex(Point,Color) method.
|
|
-- When <hasVNormals> is TRUE , you must use only AddVertex(Point,Normal) method.
|
|
|
|
end;
|