chore(monorepo): import hmwebviewer history at a717900
git-subtree-dir: apps/viewer-3d git-subtree-mainline:5e10bb1be4git-subtree-split:a71790070d
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Cube.dae - hand-authored minimal COLLADA 1.4.1 unit cube for hmwebviewer ColladaLoader testing.
|
||||
Single <geometry> (8 verts, 12 triangles) in one <visual_scene>. Edge length 2 (range -1..1),
|
||||
centered at origin. Works for Path A (SSR ?model=) and Path B (drag & drop). No network required. -->
|
||||
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
|
||||
<asset>
|
||||
<contributor>
|
||||
<author>hmwebviewer</author>
|
||||
<authoring_tool>hand-authored</authoring_tool>
|
||||
</contributor>
|
||||
<created>2026-06-19T00:00:00Z</created>
|
||||
<modified>2026-06-19T00:00:00Z</modified>
|
||||
<unit name="meter" meter="1"/>
|
||||
<up_axis>Y_UP</up_axis>
|
||||
</asset>
|
||||
|
||||
<library_geometries>
|
||||
<geometry id="Cube-mesh" name="Cube">
|
||||
<mesh>
|
||||
<source id="Cube-positions">
|
||||
<float_array id="Cube-positions-array" count="24">
|
||||
-1 -1 -1 -1 -1 1 -1 1 -1 -1 1 1 1 -1 -1 1 -1 1 1 1 -1 1 1 1
|
||||
</float_array>
|
||||
<technique_common>
|
||||
<accessor source="#Cube-positions-array" count="8" stride="3">
|
||||
<param name="X" type="float"/>
|
||||
<param name="Y" type="float"/>
|
||||
<param name="Z" type="float"/>
|
||||
</accessor>
|
||||
</technique_common>
|
||||
</source>
|
||||
<vertices id="Cube-vertices">
|
||||
<input semantic="POSITION" source="#Cube-positions"/>
|
||||
</vertices>
|
||||
<triangles count="12">
|
||||
<input semantic="VERTEX" source="#Cube-vertices" offset="0"/>
|
||||
<p>
|
||||
0 1 3 0 3 2
|
||||
4 6 7 4 7 5
|
||||
0 4 5 0 5 1
|
||||
2 3 7 2 7 6
|
||||
0 2 6 0 6 4
|
||||
1 5 7 1 7 3
|
||||
</p>
|
||||
</triangles>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</library_geometries>
|
||||
|
||||
<library_visual_scenes>
|
||||
<visual_scene id="Scene" name="Scene">
|
||||
<node id="Cube" name="Cube" type="NODE">
|
||||
<matrix sid="transform">1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1</matrix>
|
||||
<instance_geometry url="#Cube-mesh" name="Cube"/>
|
||||
</node>
|
||||
</visual_scene>
|
||||
</library_visual_scenes>
|
||||
|
||||
<scene>
|
||||
<instance_visual_scene url="#Scene"/>
|
||||
</scene>
|
||||
</COLLADA>
|
||||
Binary file not shown.
@@ -0,0 +1,59 @@
|
||||
ISO-10303-21;
|
||||
HEADER;
|
||||
/* hand-authored minimal IFC4 file for hmwebviewer web-ifc testing.
|
||||
One IfcWall (1m x 1m footprint, 1m high) as a swept-extruded solid placed in a
|
||||
site/building/storey spatial tree. Validates with web-ifc; loadable via Path A
|
||||
(SSR ?model=) and Path B (drag & drop). No network required. */
|
||||
FILE_DESCRIPTION(('ViewDefinition [ReferenceView_V1.2]'),'2;1');
|
||||
FILE_NAME('Cube.ifc','2026-06-19T00:00:00',(''),(''),'hmwebviewer','hand-authored','');
|
||||
FILE_SCHEMA(('IFC4'));
|
||||
ENDSEC;
|
||||
DATA;
|
||||
#1=IFCPERSON($,$,'',$,$,$,$,$);
|
||||
#2=IFCORGANIZATION($,'hmwebviewer',$,$,$);
|
||||
#3=IFCPERSONANDORGANIZATION(#1,#2,$);
|
||||
#4=IFCAPPLICATION(#2,'1.0','hmwebviewer','hmw');
|
||||
#5=IFCOWNERHISTORY(#3,#4,$,.ADDED.,$,$,$,0);
|
||||
|
||||
#6=IFCDIRECTION((1.,0.,0.));
|
||||
#7=IFCDIRECTION((0.,0.,1.));
|
||||
#8=IFCCARTESIANPOINT((0.,0.,0.));
|
||||
#9=IFCAXIS2PLACEMENT3D(#8,#7,#6);
|
||||
#10=IFCGEOMETRICREPRESENTATIONCONTEXT($,'Model',3,1.E-05,#9,$);
|
||||
|
||||
#11=IFCSIUNIT(*,.LENGTHUNIT.,$,.METRE.);
|
||||
#12=IFCSIUNIT(*,.AREAUNIT.,$,.SQUARE_METRE.);
|
||||
#13=IFCSIUNIT(*,.VOLUMEUNIT.,$,.CUBIC_METRE.);
|
||||
#14=IFCUNITASSIGNMENT((#11,#12,#13));
|
||||
|
||||
#15=IFCPROJECT('0Project00000000000000000',#5,'Project',$,$,$,$,(#10),#14);
|
||||
|
||||
#20=IFCLOCALPLACEMENT($,#9);
|
||||
#21=IFCSITE('0Site0000000000000000000',#5,'Site',$,$,#20,$,$,.ELEMENT.,$,$,$,$,$);
|
||||
#22=IFCLOCALPLACEMENT(#20,#9);
|
||||
#23=IFCBUILDING('0Building000000000000000',#5,'Building',$,$,#22,$,$,.ELEMENT.,$,$,$);
|
||||
#24=IFCLOCALPLACEMENT(#22,#9);
|
||||
#25=IFCBUILDINGSTOREY('0Storey00000000000000000',#5,'Storey',$,$,#24,$,$,.ELEMENT.,0.);
|
||||
|
||||
#30=IFCRELAGGREGATES('0RelAggProject0000000000',#5,$,$,#15,(#21));
|
||||
#31=IFCRELAGGREGATES('0RelAggSite000000000000 ',#5,$,$,#21,(#23));
|
||||
#32=IFCRELAGGREGATES('0RelAggBuilding00000000 ',#5,$,$,#23,(#25));
|
||||
|
||||
/* --- Wall geometry: 1m x 1m rectangle extruded 1m up --- */
|
||||
#40=IFCCARTESIANPOINT((-0.5,-0.5));
|
||||
#41=IFCCARTESIANPOINT((0.5,-0.5));
|
||||
#42=IFCCARTESIANPOINT((0.5,0.5));
|
||||
#43=IFCCARTESIANPOINT((-0.5,0.5));
|
||||
#44=IFCPOLYLINE((#40,#41,#42,#43,#40));
|
||||
#45=IFCARBITRARYCLOSEDPROFILEDEF(.AREA.,$,#44);
|
||||
#46=IFCAXIS2PLACEMENT3D(#8,#7,#6);
|
||||
#47=IFCEXTRUDEDAREASOLID(#45,#46,#7,1.);
|
||||
#48=IFCSHAPEREPRESENTATION(#10,'Body','SweptSolid',(#47));
|
||||
#49=IFCPRODUCTDEFINITIONSHAPE($,$,(#48));
|
||||
|
||||
#50=IFCLOCALPLACEMENT(#24,#9);
|
||||
#51=IFCWALL('0Wall00000000000000000000',#5,'Wall',$,$,#50,#49,$,.SOLIDWALL.);
|
||||
|
||||
#60=IFCRELCONTAINEDINSPATIALSTRUCTURE('0RelContained0000000000 ',#5,$,$,(#51),#25);
|
||||
ENDSEC;
|
||||
END-ISO-10303-21;
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user