[x3d-public] X3D examples, Nashorn/jjs self-validation test, needs component CADGeometry level 2

John Carlson yottzumm at gmail.com
Fri Apr 16 17:20:13 PDT 2021


NistFtc09Asme1Ap242Spri execution self-validation test results: 
org.web3d.x3d.sai.InvalidFieldException: ERROR_ILLEGAL_VALUE 
insufficient X3D profile='CADInterchange' for parent X3D model 
containing 'CADFace' node, ensure sufficient support by adding head 
statement <component name='CADGeometry' level='2'/>
or Java source-code assignment: 
findAncestorX3D().getHead().addComponent("CADGeometry").setLevel(2);


XML:

x3d/content/examples/ConformanceNist/STEP/FTC09/NistFtc09Asme1Ap242Spri.x3d

first part, including components:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" 
"https://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='CADInterchange' version='3.3' 
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' 
xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'>
   <head>
     <component level='1' name='EnvironmentalEffects'/>
     <component level='1' name='Navigation'/>
     <unit category='length' conversionFactor='0.0254' name='INCH'/>
     <meta content='NistFtc09Asme1Ap242Spri.x3d' name='title'/


If you're still confused, please respond.  The code in question is 
running inside jjs/nashorn, so Java results may be different.


I have quite a few different error reports.   I will try to submit them 
when I see an interesting one, or I can capture the whole log and send 
it to you.


I will run through X3D validator below, strange that the component error 
doesn't show up.

*6. Performing integer/float data-patterns 
<http://www.web3d.org/pipermail/x3d-public_web3d.org/2012-March/001950.html> 
check...* as part of X3D Regular Expressions (regexes) 
<https://www.web3d.org/specifications/X3dRegularExpressions.html> Found 
1 leading-zero match: - in line 43 column 110: 09 Error(s) detected 
during this validation test. integer/float data-patterns check: *fail*.

*7. Performing X3D Schematron 
<http://www.web3d.org/x3d/tools/schematron/X3dSchematron.html> check...* 
<meta name='info' content='Correct definition and compliance of this 
conformance scene is maintained by the Web3D Design Printing and 
Scanning Working Group, https://www.web3d.org/working-groups/cad'/> 
[/X3D/head/meta[22], diagnostic] <CADPart DEF=''/> name='NIST PMI FTC 09 
ASME1' contains whitespace, which may fail validation or matching 
corresponding names [/X3D/Scene/CADPart, warning] <CADPart DEF='' 
name='NIST PMI FTC 09 ASME1'/> does not have an ancestor CADAssembly 
[/X3D/Scene/CADPart, info] X3D Schematron check: *pass*. Good practice 
is to fix errors and warnings wherever possible, and consider silencing 
harmless informational messages, so that important indicators remain 
noticeable.


John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20210416/d9b7418e/attachment.html>


More information about the x3d-public mailing list