Compare commits

...

3 Commits

Author SHA1 Message Date
oguzhankoral e71714e282 Set inputs for mapped definition 2024-01-08 16:18:51 +03:00
oguzhankoral a6351659da Use insertion point for instances 2024-01-08 14:33:11 +03:00
oguzhankoral 80f62e6ee4 Fix transformation matrix 2024-01-08 12:17:48 +03:00
2 changed files with 9 additions and 4 deletions
@@ -136,8 +136,10 @@ module SpeckleConnector
type: type,
level: level,
units: units,
base_point: SpeckleObjects::Geometry::Point
.from_vertex(component_instance.bounds.min.transform(transformation), units),
base_point: SpeckleObjects::Geometry::Point.from_vertex(
component_instance.definition.insertion_point.transform(transformation),
units
),
rotation: calculate_rotation(transformation.to_a),
application_id: component_instance.persistent_id.to_s
)
+5 -2
View File
@@ -623,8 +623,6 @@ export default {
this.selectedLevel = this.levels[0].name
}
}
console.log(this.selectedFamily, "selectedFamily after")
console.log(this.selectedLevel, "selectedLevel after")
},
hideOptionalMappingInputs(){
this.categorySelectionActive = false
@@ -713,6 +711,11 @@ export default {
}
this.selectedMethod = this.lastSelectedEntity['definition']['schema']['method']
this.selectedCategory = this.lastSelectedEntity['definition']['schema']['category']
this.selectedFamily = this.lastSelectedEntity['definition']['schema']['family']
this.getFamiliesFromSelectedMethod()
this.getTypesFromSelectedFamily()
this.selectedFamilyType = this.lastSelectedEntity['definition']['schema']['family_type']
this.selectedLevel = this.lastSelectedEntity['definition']['schema']['level']
this.updateMappingInputs()
}
}