David Kekesi
511311eb84
selectionBridge works
2024-10-16 15:08:34 +02:00
David Kekesi
def9162e4c
added SelectionBridge, SelectionInfo, GetSelection
2024-10-15 17:13:06 +02:00
Ralph Wessel
9c10300f01
Merge pull request #6 from specklesystems/FinishProxies_WIP
...
Finish proxies wip
2024-10-14 16:04:52 +01:00
David Kekesi
902fb0f626
changed ArchicadRGB::write to export ARGB colors instead of RGB
2024-10-14 15:46:12 +02:00
Ralph Wessel
432e5a0b0b
Merge branch 'FinishProxies_WIP' of https://github.com/specklesystems/speckle-cpp-connectors into FinishProxies_WIP
2024-10-14 11:25:32 +01:00
Ralph Wessel
a67361c903
FinishProxy should call base object when (de)serialising
2024-10-14 11:25:09 +01:00
Ralph Wessel
e82698ac3a
Shininess in Modeler::Material is 1-100 scale (NB: looks logarithmic but will resolve on advice from GS)
2024-10-14 11:18:48 +01:00
Ralph Wessel
2fab7da57d
Update FinishProxy to be a BIMRecord, i.e. export speckle_type and applicaiton ID
...
BIMRecord constructor should allow units to be initialised to nullopt
2024-10-14 11:17:17 +01:00
Ralph Wessel
36b95436ae
Finishes have no unit of measurement
2024-10-14 10:13:23 +01:00
Ralph Wessel
24f6a6349a
Capture ID of Modeler::Material in Finish
2024-10-14 10:00:23 +01:00
Ralph Wessel
bd54ae3995
Change JSON tag from "unit" to "units"
2024-10-14 09:50:07 +01:00
Ralph Wessel
7e742796f5
Corrected Mesh speckle_type
...
Mesh constructor failed to set BIM ID
2024-10-13 22:27:59 +01:00
Ralph Wessel
373179fa65
Assigned serialisation type for Str256
...
Linked mesh IDs in finish proxies is a single array
2024-10-13 22:16:52 +01:00
Ralph Wessel
11bfb9333f
Updated VS projects
2024-10-13 21:35:10 +01:00
Ralph Wessel
45c0705a60
#include <ACAPinc.h> prior to other includes
2024-10-13 19:57:01 +01:00
Ralph Wessel
7f4b7112ae
Finishes incorporates all Archicad material properties
...
Serialisation wrapper for Archicad colour rgb colour
2024-10-13 17:49:17 +01:00
Ralph Wessel
05c2cdc47a
Updated VS projects
...
Using Str256 for AC attribute name
WIP - using fixed size for material proxy serialisation count (actual count not known at this point - may need to use something like max size_t)
2024-10-12 09:19:09 +01:00
Ralph Wessel
dbc2c79f2a
Added serilaisation wrapper for 256-byte char array (used for some AC string types)
2024-10-12 09:06:32 +01:00
Ralph Wessel
36e50bb63e
SendObject and SendViaBrowserArgs forward the wrapped object management to the serialiser
...
ProjectCollection defines itself as a serialisation manager (to collect material proxies)
2024-10-11 17:44:41 +01:00
Ralph Wessel
d3492512cd
Update SendObject and SendViaBrowserArgs to use serialisation management (to support collection of material proxies)
2024-10-11 17:19:04 +01:00
Ralph Wessel
65b636accb
Mesh serialisation now directly engages with management to populate material proxies rather than using a "dummy" field
2024-10-11 16:53:42 +01:00
David Kekesi
791e9f072f
finish proxies wip
2024-10-11 17:10:05 +02:00
kekesidavid
68c98abde9
Merge pull request #5 from specklesystems/david/cnx-576-implement-element-getbody
...
David/cnx 576 implement element getbody
2024-10-11 13:20:44 +02:00
Ralph Wessel
a117e327c7
Updated VS project
2024-10-11 11:47:35 +01:00
Ralph Wessel
de46d899b0
Added FinishProxy to collect mesh finishes (to build 'material proxy collection)
2024-10-11 11:45:10 +01:00
David Kekesi
30163bfd9d
export mesh, vertices, faces, colors
2024-10-11 12:44:55 +02:00
Ralph Wessel
21fc2cff25
Added FinishCollector interface as a serialisation manager to collect finishes from meshes as they are serialised
...
ProjectCollection is now a FinishCollector (accumulates the finishes to write the material proxies at the end)
2024-10-11 09:58:26 +01:00
Ralph Wessel
0c74a28982
Fixes to Storey attribute class
2024-10-10 13:45:36 +01:00
Ralph Wessel
cc64d7df44
Added lookup for AC storeys using an element floor index
2024-10-10 13:02:57 +01:00
Ralph Wessel
f7112a407c
Set correct base class for RecordCollection
...
RecordCollection serialises name
2024-10-10 12:12:35 +01:00
Ralph Wessel
7ed4d8c807
Updated VS projects
2024-10-10 10:45:35 +01:00
Ralph Wessel
b5447b263e
NB: Interim commit - new code is untested at this point
...
Information sent to Speckle is now presented in hiearchical collections:
- Root level contains material proxies
- Second level is project storeys
- Third level is element type
Added database and record definitions for attributes including:
- Finishes (surface rendering material)
- Storeys
Element getters for storey and type name
Aligned some speckle_type names to Revit (where possible)
2024-10-10 08:52:18 +01:00
Ralph Wessel
b51b0ecb13
Mesh serialises with speckle_type and units - now appears in 3D view
2024-10-04 22:13:32 +01:00
Ralph Wessel
72cd75d2e6
Added speckle_type and unit properties to Record, BIMRecord, Element and Mesh classes
...
Defined (de)serialisation for LengthType
2024-10-04 21:03:54 +01:00
Ralph Wessel
3e2777a38f
Merge branch 'david/cnx-577-implement-mesh-class' into develop
2024-10-03 17:55:44 +01:00
Ralph Wessel
042a515dc4
Removed test code from palette
2024-10-03 17:54:01 +01:00
Ralph Wessel
f5bb3dc454
Fix to element mesh face indices
2024-10-03 17:50:50 +01:00
Ralph Wessel
f066b0ee02
Send bridge method injects the first selected element into the sent data for testing
...
Mesh vertices, faces and colours are all single arrays
2024-10-03 17:05:02 +01:00
Ralph Wessel
8dd00005b1
Element is a type of BIMRecord
2024-10-03 16:39:21 +01:00
Ralph Wessel
0592bcc947
BIMRecord is a type of Record (adds applicationID)
2024-10-03 16:31:58 +01:00
Ralph Wessel
76348c8fd1
Merge branch 'develop' into david/cnx-577-implement-mesh-class
2024-10-03 15:51:27 +01:00
Ralph Wessel
1a61608c42
Using preview interface for testing
2024-10-03 14:33:52 +01:00
Ralph Wessel
844ab3544b
Commit working
2024-10-03 14:32:30 +01:00
Ralph Wessel
990a1ab9e1
Updated for VS
2024-10-03 13:48:22 +01:00
David Kekesi
6cf03010bd
mesh export WIP
2024-10-03 14:39:09 +02:00
Ralph Wessel
a0413d0d3a
SendObject now holds and sends a Record
2024-10-03 13:12:57 +01:00
Ralph Wessel
8539129e7c
SendObject now the owner of the object to be sent
2024-10-03 12:33:08 +01:00
Ralph Wessel
1a901b0a6c
Send bridge is updated:
...
- total children removed
- rootObject replaces batches (sent as an object rather than a string)
2024-10-03 12:05:48 +01:00
Ralph Wessel
cc034191b4
Updated with GetSendSettings
2024-10-02 12:54:48 +01:00
Ralph Wessel
a6911fad1c
Added GetSendSettings binding
2024-10-02 10:09:28 +01:00