primitiveQuad operation

Syntax

primitiveQuad()

primitiveQuad(width, length)

Parameters

Description

The primitiveQuad operation inserts a quad geometry into the scope of the current shape.

If one scope size is zero while the 2 other sizes are not zero the quad will be inserted with respect to the plane defined by the valued scope sizes.

The quad has texture coordinates on the first texture layer (COLORMAP).

Examples

Insert a
Lot-->
	rotateScope(0, 0, 90) // scope.sx is 0
	primitiveQuad()
	texture("builtin:uvtest.png")
			
The inserted quad is fit into the current scope yz dimension.
Insert a
Lot-->
	rotateScope(0, 0, 90) // scope.sx is 0
	primitiveQuad(10,20)
	texture("builtin:uvtest.png")
	
The inserted quad has a width of 10, a length of 20 and is positioned in the yz center.

Related






primitiveDisk operation

Syntax

primitiveDisk()

primitiveDisk(nVertices)

primitiveDisk(nVertices, radius)

Parameters

Description

The primitiveDisk operation inserts a disk geometry into the scope of the current shape.

If one scope size is zero while the 2 other sizes are not zero the disk will be inserted with respect to the plane defined by the valued scope sizes.

The disk has texture coordinates on the first texture layer (COLORMAP).

Examples

Insert a
Lot-->
	rotateScope(-90, 0, 0) // scope.sz is 0
	primitiveDisk()
	texture("builtin:uvtest.png")
			
The inserted disk has 16 vertices and is fit into the current scope xy dimension.
Insert a
Lot-->
	rotateScope(-90, 0, 0) // scope.sz is 0
	primitiveDisk(8,10)
	texture("builtin:uvtest.png")
	
The inserted disk has 8 vertices, a radius of 10 and is positioned in the xy center.

Related






primitiveCube operation

Syntax

primitiveCube()

primitiveCube(width, height, depth)

Parameters

Description

The primitiveCube operation inserts a cube geometry into the scope of the current shape.

The cube has texture coordinates on the first texture layer (COLORMAP).

Examples

Insert a
Lot-->
   primitiveCube()
   texture("builtin:uvtest.png")
	
The inserted cube is fit into the current scope. The scope's zero size is modified relative to the average of the two non-zero sizes.
Insert a
Lot-->
   primitiveCube(10,15,20)
   texture("builtin:uvtest.png")
	
The inserted cube has a width of 10, a height of 15, a depth of 20 and is positioned in the xz center.

Related






primitiveSphere operation

Syntax

primitiveSphere()

primitiveSphere(sides, divisions)

primitiveSphere(sides, divisions, radius)

Parameters

Description

The primitiveSphere operation inserts a sphere geometry into the scope of the current shape.

The sphere has texture coordinates on the first texture layer (COLORMAP).

Examples

Insert a
Lot-->
   primitiveSphere()
   texture("builtin:uvtest.png")
	
The inserted sphere has 16 sides, 16 divisions and is fit into the current scope. The scope's zero size is modified relative to the average of the two non-zero sizes.
Insert a
Lot-->
   primitiveSphere(8,4,10)
   texture("builtin:uvtest.png")
	
The inserted sphere has 8 sides, 4 divisions, a radius of 10 and is positioned in the xz center.

Related






primitiveCylinder operation

Syntax

primitiveCylinder()

primitiveCylinder(sides)

primitiveCylinder(sides, radius, height)

Parameters

Description

The primitiveCylinder operation inserts a cylinder geometry into the scope of the current shape.

The cylinder has texture coordinates on the first texture layer (COLORMAP).

Examples

Insert a
Lot-->
   primitiveCylinder()
   texture("builtin:uvtest.png")
	
The inserted cylinder has 16 sides and is fit into the current scope. The scope's zero size is modified relative to the average of the two non-zero sizes.
Insert a
Lot-->
   primitiveCylinder(8,10,15)
   texture("builtin:uvtest.png")
	
The inserted cylinder has 8 sides, a radius of 10, a height of 15 and is positioned in the xz center.

Related






primitiveCone operation

Syntax

primitiveCone()

primitiveCone(sides)

primitiveCone(sides, radius, height)

Parameters

Description

The primitiveCone operation inserts a cone geometry into the scope of the current shape.

The cone has texture coordinates on the first texture layer (COLORMAP).

Examples

Insert a
Lot-->
   primitiveCone()
   texture("builtin:uvtest.png")
	
The inserted cone has 16 sides and is fit into the current scope. The scope's zero size is modified relative to the average of the two non-zero sizes.
Insert a
Lot-->
   primitiveCone(8,10,15)
   texture("builtin:uvtest.png")
	
The inserted cone has 8 sides, a radius of 10, a height of 15 and is positioned in the xz center.

Related

Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.