Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
6956d80
Move Openings to GeometricElement.
ikeough Nov 25, 2020
b685b30
Don't add translation to transformed vectors.
ikeough Nov 25, 2020
349f137
Add a comment to Import.
ikeough Nov 25, 2020
b2954f2
Remove unused IHasOpenings interface.
ikeough Nov 25, 2020
873ef13
Progress commit for new IFC reading methods.
ikeough Nov 26, 2020
b81c3f7
Add basic material support.
ikeough Nov 26, 2020
feb6b71
Merge branch 'master' into everything-ifc
ikeough Feb 22, 2021
b1fa140
Merge branch 'master' into everything-ifc
ikeough Feb 28, 2021
079b697
Merge branch 'master' into everything-ifc
ikeough Jun 30, 2021
1af1dd8
Fix material construction.
ikeough Jun 30, 2021
01965ce
Add openings and a merge predicate.
ikeough Jul 1, 2021
cf3d5ba
A note about material lists.
ikeough Jul 1, 2021
0311b9d
Remove IHasOpenings.
ikeough Jul 1, 2021
5694c9b
Update the changelog.
ikeough Jul 1, 2021
acdb1fe
Merge branch 'master' into everything-ifc
ikeough Jul 1, 2021
943ae62
Merge branch 'master' into everything-ifc
ikeough Jul 2, 2021
16d1c98
Merge branch 'master' into everything-ifc
ikeough Jul 12, 2021
5aba4ea
Merge branch 'master' into everything-ifc
ikeough Sep 30, 2021
7cbf472
Create BuildingElement.
ikeough Sep 30, 2021
4626c39
Merge branch 'everything-ifc' of https://github.com/hypar-io/Elements…
ikeough Sep 30, 2021
ba6aff1
Merge branch 'master' into everything-ifc
ikeough Oct 1, 2021
ad453ae
Add building element.
ikeough Oct 1, 2021
dc15bc1
Use building elements in IFC export.
ikeough Oct 1, 2021
14bae7f
Merge branch 'master' into everything-ifc
ikeough Dec 20, 2021
373755e
Make ceiling a building element.
ikeough Dec 20, 2021
68e7f7d
Remove ihasopenings.
ikeough Dec 20, 2021
a043874
Merge branch 'master' into everything-ifc
ikeough Feb 5, 2022
e47dff7
Update ceilings as building elements.
ikeough Feb 5, 2022
5e90cf1
Merge branch 'master' into everything-ifc
ikeough Feb 12, 2023
02c6d59
Merge branch 'master' into everything-ifc
ikeough Jul 1, 2023
b31ef80
More merge updates.
ikeough Jul 1, 2023
ac412a2
Openings are cutting holes.
ikeough Jul 2, 2023
0f04c5c
Tweak extrusion direction.
ikeough Jul 2, 2023
2b19c88
Use most up to date IFC.
ikeough Jul 3, 2023
d0d2105
Add the bimit sample model.
ikeough Jul 3, 2023
c9657d4
Add support for IfcIndexedPolycurve.
ikeough Jul 9, 2023
6a98227
Upgrade libtess.
ikeough Jul 9, 2023
8ece034
Remove old FromIFC method.
ikeough Jul 9, 2023
6305985
Get all ifc elements, not just building elements.
ikeough Jul 9, 2023
ddcdb73
Cleanup.
ikeough Jul 9, 2023
619937b
Add the step id to messages.
ikeough Jul 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- `Message.Info`
- `Message.Error`
- `Message.Warning`
- `BuildingElement`

### Changed

Expand Down Expand Up @@ -527,6 +528,9 @@
- `Vector3.>=`
- `Vector3.<=`
- `Plane.Intersects(Plane a, Plane b)`

### Removed
- `IHasOpenings`
- A handful of convenience operators and conversions:
- implicit `(double X, double Y, double Z)` => `Vector3`
- implicit `(double X, double Y)` => `Vector3`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Hypar.IFC4" Version="0.1.4.1" />
<PackageReference Include="Hypar.IFC4" Version="1.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Elements.Geometry;
using Elements.Geometry.Interfaces;
using Elements.Geometry.Solids;
using Elements.Interfaces;
using IFC;

namespace Elements.Serialization.IFC
Expand Down Expand Up @@ -169,19 +168,17 @@ internal static List<IfcProduct> ToIfcProducts(this Element e,

// If the element has openings, make opening relationships in
// the IfcElement.
if (e is IHasOpenings openings)
if (geoElement is BuildingElement)
{
if (openings.Openings.Count > 0)
var be = geoElement as BuildingElement;
foreach (var o in be.Openings)
{
foreach (var o in openings.Openings)
{
var element = (IfcElement)product;
// TODO: Find the opening that we've already created that relates here
var opening = ifcOpenings.First(ifcO => ifcO.GlobalId == IfcGuid.ToIfcGuid(o.Id));
var voidRel = new IfcRelVoidsElement(IfcGuid.ToIfcGuid(Guid.NewGuid()), element, opening);
element.HasOpenings.Add(voidRel);
doc.AddEntity(voidRel);
}
var element = (IfcElement)product;
// TODO: Find the opening that we've already created that relates here
var opening = ifcOpenings.First(ifcO => ifcO.GlobalId == IfcGuid.ToIfcGuid(o.Id));
var voidRel = new IfcRelVoidsElement(IfcGuid.ToIfcGuid(Guid.NewGuid()), element, opening);
element.HasOpenings.Add(voidRel);
doc.AddEntity(voidRel);
}
}

Expand Down
Loading