# cee::pt::PtfxDatasetWriter

class `PtfxDatasetWriter`

  Writer for the PTFX binary particle format.

  See also

  PtfxDatasetReader, ParticleDatasetReader

  Public Functions

  `PtfxDatasetWriter`()
  `CEE_DISALLOW_COPY_AND_ASSIGN`(PtfxDatasetWriter)
  bool `open`(const Str &filePath, uint32_t maxParticleCount, uint32_t timestepCount, const std::array<float, 3> &bboxMin, const std::array<float, 3> &bboxMax, const std::vector<PtfxScalarFieldInfo> &scalarFields, Error *error = nullptr)

    Opens a new PTFX dataset for writing.

  bool `writeFrame`(const std::vector<uint32_t> &ids, const std::vector<float> &positions, const std::vector<std::vector<float>> &scalarArrays, Error *error = nullptr)

    Writes a single frame of particle data.

  bool `close`(Error *error = nullptr)

    Closes the dataset and writes final header and sidecar.

  bool `isOpen`() const
  uint32_t `framesWritten`() const

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...