Las primitivas bsicas permiten modelar algunas formas geomtricas, por ello
con VRML se pueden definir puntos, lneas y objetos con los nodos:
PointSet, IndexedLineSet e IndexedFaceSet
Nodo PointSet
Este nodo especifica un conjunto de puntos en 3D dentro de un sistema de
coordenadas locales, asociando un color para cada punto.
No ofrece control sobre el tamao del punto.
Valores del nodo PointSet (Sintaxis)
PointSet {
color NULL
coord NULL
Ejemplo.
#VRML V2.0 utf8
# ejemplo con PointSet
Shape {
geometry PointSet {
coord Coordinate {
point [
-1.0 -1.0 0.0,
1.0 1.0 0.0,
0.0 0.0 0.0,
]
}
color Color {
color [
1.0 0.0 0.0,
0.0 1.0 1.0,
0.0 0.0 1.0,
]
}
}
}
#VRML V2.0 utf8
#puntos horizontales
Shape {
geometry PointSet{
coord Coordinate{
point [
0.3 0.3 0.3,
0.6 0.3 0.3,
0.9 0.3 0.3,
1.2 0.3 0.3,
1.5 0.3 0.3
#puntos verticales
Shape{ geometry PointSet{ coord Coordinate {
point[
0.8 0.8 0.3,
0.8 1.3 0.3,
0.8 1.8 0.3