Not sure if this fits into this part of the forum, but the idea later is to implement some code into my course project that will export part of the data in .x3d format to avoid doing it manually into an Excel document that has a macro/script.
Basically, the axes are three:
X - between 0.0 and 1.0
Y - the same as X
Z - between 0 and 1000
What I would like to do is to add measures to those three axes:
- X and Y:
From 0.10 steps
Code: Select all
_______________________
| | |
0.00 0.10 0.20 ... etc, until 1
from 0 to 1000 in steps of 100
Code: Select all
_________________________
| | |
0 100 200 ... etc, until 1000
Does anyone know how to do it?
The main part of my .x3d file:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN" "http://www.web3d.org/specifications/x3d-3.1.dtd">
<X3D profile='Immersive' version='3.1' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.1.xsd'>
<head>
<meta content='Transparency.x3d' name='title'/>
<meta content='This example shows a partially transparent Sphere in front of an opaque Box and Cylinder.' name='description'/>
<meta content='Leonard Daly and Don Brutzman' name='creator'/>
<meta content='2 February 2006' name='created'/>
<meta content='2 February 2006' name='translated'/>
<meta content='1 April 2007' name='modified'/>
<meta content='http://X3dGraphics.com' name='reference'/>
<meta content='http://www.web3d.org/x3d/content/examples/X3dResources.html' name='reference'/>
<meta content='Copyright (c) 2006, Daly Realism and Don Brutzman' name='rights'/>
<meta content='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com' name='subject'/>
<meta content='http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter05-AppearanceMaterialTextures/Transparency.x3d' name='identifier'/>
<meta content='X3D-Edit, https://savage.nps.edu/X3D-Edit' name='generator'/>
<meta content='../license.html' name='license'/>
</head>
<Scene>
<Background skyColor='1 1 1'/>
<Viewpoint description='Viewpoint' position='0.5 0 3'/>
<Appearance DEF='line'> <Material emissiveColor='0 0 0'/> </Appearance>
<Appearance DEF='lineRed'> <Material emissiveColor='1 0 0'/> </Appearance>
<Appearance DEF='lineBlu'> <Material emissiveColor='0 0 1'/> </Appearance>
<Shape> <Appearance USE='line' /> <IndexedLineSet coordIndex='0 1'> <Coordinate point='0 0 0 0 0 1'/> </IndexedLineSet> </Shape>
<Shape> <Appearance USE='lineRed' /> <IndexedLineSet coordIndex='0 1'> <Coordinate point='0 0 0 0 1 0'/> </IndexedLineSet> </Shape>
<Shape> <Appearance USE='lineBlu' /> <IndexedLineSet coordIndex='0 1'> <Coordinate point='0 0 0 1 0 0'/> </IndexedLineSet> </Shape>
<Shape> <Appearance USE='lineBlu' /> <IndexedLineSet coordIndex='0 1'> <Coordinate point='1 1 1 0 1 1'/> </IndexedLineSet> </Shape>
<Shape> <Appearance USE='line' /> <IndexedLineSet coordIndex='0 1'> <Coordinate point='1 1 1 1 1 0'/> </IndexedLineSet> </Shape>
<Shape> <Appearance USE='lineRed' /> <IndexedLineSet coordIndex='0 1'> <Coordinate point='1 1 1 1 0 1'/> </IndexedLineSet> </Shape>
<!-- Title -->
<Transform translation='0 0.95 1'>
<Shape>
<Appearance><Material diffuseColor='0 0 0' emissiveColor='0 0 0.7'/></Appearance>
<Text string='3D SURFACE'>
<FontStyle family="SANS" style='PLAIN' justify='"BEGIN" "MIDDLE"' size='0.06'/>
</Text>
</Shape>
</Transform>
<!-- labels -->
<Transform translation='1.02 0 0'>
<Shape>
<Appearance><Material diffuseColor='0 0 0' emissiveColor='0 0 0.7'/></Appearance>
<Text string='X'>
<FontStyle family="SANS" style='BOLD' justify='"BEGIN" "MIDDLE"' size='0.06'/>
</Text>
</Shape>
</Transform>
<Transform translation='0 1.02 0'>
<Shape>
<Appearance><Material diffuseColor='0 0 0' emissiveColor='0.7 0 0'/></Appearance>
<Text string='Y'>
<FontStyle family="SANS" style='BOLD' justify='"MIDDLE" "BEGIN"' size='0.06'/>
</Text>
</Shape>
</Transform>
<Transform translation='0 0 1.02'>
<Shape>
<Appearance><Material diffuseColor='0 0 0' emissiveColor='0 0 0'/></Appearance>
<Text string='Z'>
<FontStyle family="SANS" style='BOLD' justify='"END" "MIDDLE"' size='0.06'/>
</Text>
</Shape>
</Transform>
<!-- surface -->
</Scene>
</X3D>