-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/bmspt 299 super bcf file (#22)
* [BMSPT-299] generation of superbcf file * [BMSPT-299] test file fix * [BMSPT-299] more realistic bcf files
- Loading branch information
1 parent
846135b
commit 3a87ef2
Showing
13 changed files
with
669 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/bcf-toolkit/Builder/Bcf30/OrthogonalCameraBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using BcfToolkit.Model.Bcf30; | ||
|
||
namespace BcfToolkit.Builder.Bcf30; | ||
|
||
public partial class OrthogonalCameraBuilder { | ||
public OrthogonalCameraBuilder SetCameraViewPoint(double x, double y, double z) { | ||
_camera.CameraViewPoint = new Point { | ||
X = x, | ||
Y = y, | ||
Z = z | ||
}; | ||
return this; | ||
} | ||
|
||
public OrthogonalCameraBuilder SetCameraDirection(double x, double y, double z) { | ||
_camera.CameraDirection = new Direction { | ||
X = x, | ||
Y = y, | ||
Z = z | ||
}; | ||
return this; | ||
} | ||
|
||
public OrthogonalCameraBuilder SetCameraUpVector(double x, double y, double z) { | ||
_camera.CameraUpVector = new Direction { | ||
X = x, | ||
Y = y, | ||
Z = z | ||
}; | ||
return this; | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
src/bcf-toolkit/Builder/Bcf30/PerspectiveCameraBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using BcfToolkit.Model.Bcf30; | ||
namespace BcfToolkit.Builder.Bcf30; | ||
|
||
public partial class PerspectiveCameraBuilder { | ||
public PerspectiveCameraBuilder SetCameraViewPoint(double x, double y, double z) { | ||
_camera.CameraViewPoint = new Point { | ||
X = x, | ||
Y = y, | ||
Z = z | ||
}; | ||
return this; | ||
} | ||
|
||
public PerspectiveCameraBuilder SetCameraDirection(double x, double y, double z) { | ||
_camera.CameraDirection = new Direction { | ||
X = x, | ||
Y = y, | ||
Z = z | ||
}; | ||
return this; | ||
} | ||
|
||
public PerspectiveCameraBuilder SetCameraUpVector(double x, double y, double z) { | ||
_camera.CameraUpVector = new Direction { | ||
X = x, | ||
Y = y, | ||
Z = z | ||
}; | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/bcf-toolkit/Builder/Bcf30/ViewPointBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using BcfToolkit.Model.Bcf30; | ||
|
||
namespace BcfToolkit.Builder.Bcf30; | ||
|
||
public partial class ViewPointBuilder { | ||
|
||
public ViewPointBuilder SetVisualizationInfo(VisualizationInfo visualizationInfo) { | ||
_viewPoint.VisualizationInfo = visualizationInfo; | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,9 +35,9 @@ public void EmptyFieldsConversationTest() { | |
headerBuilder | ||
.SetDate(DateTime.Now) | ||
.SetReference(string.Empty) | ||
.SetFileName("Filename") | ||
.SetIfcProject("1234567890123456789012") | ||
.SetIfcSpatialStructureElement("1234567890123456789012") | ||
.SetFileName("StructuralModel.ifc") | ||
.SetIfcProject("1g8GxLEzP459ZWW6_RGsez") | ||
.SetIfcSpatialStructureElement("2g8GxLEzP459ZWW6_RGsez") | ||
.SetIsExternal(true) | ||
.Build(); | ||
var headers = new List<HeaderFile> { header }; | ||
|
@@ -62,17 +62,17 @@ public void EmptyFieldsConversationTest() { | |
.SetModifiedAuthor(string.Empty) | ||
.SetDate(DateTime.Today) | ||
.SetModifiedDate(DateTime.Today) | ||
.SetAuthor("author1") | ||
.SetCommentProperty("commProp1") | ||
.SetAuthor("[email protected]") | ||
.SetCommentProperty("Pls changes the wall thickness to 8cm") | ||
.Build(); | ||
var commentPropCanBeEmpty = | ||
commentBuilder2 | ||
.SetGuid("999b4df2-0187-49a9-8a4a-23992696bafd") | ||
.SetModifiedAuthor(string.Empty) | ||
.SetDate(DateTime.Today) | ||
.SetModifiedDate(DateTime.Today) | ||
.SetAuthor("author2") | ||
.SetViewPointGuid("111b4df2-0187-49a9-8a4a-23992696bafd") | ||
.SetAuthor("[email protected]") | ||
.SetViewPointGuid("444b4df2-0187-49a9-8a4a-23992696bafd") | ||
.SetCommentProperty(string.Empty) | ||
.Build(); | ||
var comments = new List<Comment> { commentPropMustHaveValue, commentPropCanBeEmpty }; | ||
|
@@ -83,7 +83,7 @@ public void EmptyFieldsConversationTest() { | |
var componentBuilder = new ComponentBuilder(); | ||
var component = | ||
componentBuilder | ||
.SetIfcGuid("1234567890123456789012") | ||
.SetIfcGuid("3g8GxLEzP459ZWW6_RGsez") | ||
.SetOriginatingSystem(string.Empty) | ||
.SetAuthoringToolId(string.Empty) | ||
.Build(); | ||
|
@@ -104,7 +104,7 @@ public void EmptyFieldsConversationTest() { | |
var viewPoint = | ||
viewPointBuilder | ||
.SetGuid("444b4df2-0187-49a9-8a4a-23992696bafd") | ||
.SetIndex(5) | ||
.SetIndex(0) | ||
.SetSnapshot(string.Empty) | ||
.SetSnapshotData(new FileData { | ||
Data = "snapshotdata1" | ||
|
Oops, something went wrong.